projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24a7c30
)
Strip llvm.dbg.lv also.
author
Devang Patel
<dpatel@apple.com>
Thu, 20 May 2010 16:49:22 +0000
(16:49 +0000)
committer
Devang Patel
<dpatel@apple.com>
Thu, 20 May 2010 16:49:22 +0000
(16:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104236
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/StripSymbols.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/StripSymbols.cpp
b/lib/Transforms/IPO/StripSymbols.cpp
index 310e4a29e5d03e3b3baf698cf078e9a781958d25..6bc8e66943a75d648d2d8d4548bb7de15bcd44d4 100644
(file)
--- a/
lib/Transforms/IPO/StripSymbols.cpp
+++ b/
lib/Transforms/IPO/StripSymbols.cpp
@@
-229,6
+229,12
@@
static bool StripDebugInfo(Module &M) {
NMD->eraseFromParent();
}
+ NMD = M.getNamedMetadata("llvm.dbg.lv");
+ if (NMD) {
+ Changed = true;
+ NMD->eraseFromParent();
+ }
+
unsigned MDDbgKind = M.getMDKindID("dbg");
for (Module::iterator MI = M.begin(), ME = M.end(); MI != ME; ++MI)
for (Function::iterator FI = MI->begin(), FE = MI->end(); FI != FE;