diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-04-26 03:58:56 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-04-26 03:58:56 +0000 |
| commit | b28d4f152ee9b76d8798b2bdcb06cb8d106841e6 (patch) | |
| tree | cb9878906402445d9f4e2a5151c62de4eb7f3c16 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
| parent | 1790c9cbb6714e81eab1412909a2320acaecc43b (diff) | |
Print all the moves at a given label instead of just the first one.
Remove previous DwarfCFI hack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130187 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index a841ed6d60..e4bd5a4b22 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/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 |
