From af0e2726835e096e32c30c1b88cc7a6232a6ef69 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 6 Oct 2009 02:19:11 +0000 Subject: Update processDebugLoc() so that it can be used to process debug info before and after printing an instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83363 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/Target/Mips') diff --git a/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp b/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp index fd6d13e..2159555 100644 --- a/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp +++ b/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp @@ -278,7 +278,7 @@ bool MipsAsmPrinter::runOnMachineFunction(MachineFunction &MF) { for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end(); II != E; ++II) { - processDebugLoc(II); + processDebugLoc(II, true); // Print the assembly for the instruction. printInstruction(II); @@ -286,7 +286,8 @@ bool MipsAsmPrinter::runOnMachineFunction(MachineFunction &MF) { if (VerboseAsm && !II->getDebugLoc().isUnknown()) EmitComments(*II); O << '\n'; - + + processDebugLoc(II, false); ++EmittedInsts; } -- cgit v1.1