Strip llvm.dbg.lv also.

llvm-svn: 104236
This commit is contained in:
Devang Patel 2010-05-20 16:49:22 +00:00
parent 6855ba2c95
commit e2ff7f3a7d
1 changed files with 6 additions and 0 deletions

View File

@ -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;