Return Changed. This required setting Changed if dbg metadata

is stripped off.  Currently set unconditionally, since the API
does not provide a way of working out if anything was actually
stripped off.

llvm-svn: 107142
This commit is contained in:
Duncan Sands 2010-06-29 14:52:10 +00:00
parent 07e9b76b61
commit 2f42c8716a

View File

@ -240,10 +240,12 @@ static bool StripDebugInfo(Module &M) {
for (Function::iterator FI = MI->begin(), FE = MI->end(); FI != FE;
++FI)
for (BasicBlock::iterator BI = FI->begin(), BE = FI->end(); BI != BE;
++BI)
++BI) {
Changed = true; // FIXME: Only set if there was debug metadata.
BI->setMetadata(MDDbgKind, 0);
}
return true;
return Changed;
}
bool StripSymbols::runOnModule(Module &M) {