Strip llvm.dbg.lv also.

llvm-svn: 104236
This commit is contained in:
Devang Patel 2010-05-20 16:49:22 +00:00
parent af66103d32
commit ae24244a10

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;