From 80cb3cb1d6016ddadadf297fef3b9833c649179b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 26 Apr 2011 03:58:56 +0000 Subject: Print all the moves at a given label instead of just the first one. Remove previous DwarfCFI hack. llvm-svn: 130187 --- llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp') 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 &Moves = MMI.getFrameMoves(); - const MachineMove *Move = NULL; + bool FoundOne = false; + (void)FoundOne; for (std::vector::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 -- cgit v1.2.3