mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-25 13:08:00 +00:00
Strip llvm.dbg.lv also.
llvm-svn: 104236
This commit is contained in:
parent
af66103d32
commit
ae24244a10
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user