summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-04-26 03:58:56 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-04-26 03:58:56 +0000
commit80cb3cb1d6016ddadadf297fef3b9833c649179b (patch)
tree4e52d896bcd72d0e7a67bfa976f8acc8d6e5703c /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parentc58d293a6f291913094d2af6d4d9ec85ccc0b92d (diff)
downloadbcm5719-llvm-80cb3cb1d6016ddadadf297fef3b9833c649179b.tar.gz
bcm5719-llvm-80cb3cb1d6016ddadadf297fef3b9833c649179b.zip
Print all the moves at a given label instead of just the first one.
Remove previous DwarfCFI hack. llvm-svn: 130187
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index a841ed6d60c..e4bd5a4b220 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -607,16 +607,16 @@ void AsmPrinter::emitPrologLabel(const MachineInstr &MI) {
const MachineFunction &MF = *MI.getParent()->getParent();
MachineModuleInfo &MMI = MF.getMMI();
std::vector<MachineMove> &Moves = MMI.getFrameMoves();
- const MachineMove *Move = NULL;
+ bool FoundOne = false;
+ (void)FoundOne;
for (std::vector<MachineMove>::iterator I = Moves.begin(),
E = Moves.end(); I != E; ++I) {
if (I->getLabel() == Label) {
- Move = &*I;
- break;
+ EmitCFIFrameMove(*I);
+ FoundOne = true;
}
}
- assert(Move);
- EmitCFIFrameMove(*Move);
+ assert(FoundOne);
}
/// EmitFunctionBody - This method emits the body and trailer for a
OpenPOWER on IntegriCloud