mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107142 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user