diff options
author | Devang Patel <dpatel@apple.com> | 2009-10-06 02:19:11 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-10-06 02:19:11 +0000 |
commit | af0e2726835e096e32c30c1b88cc7a6232a6ef69 (patch) | |
tree | 934ac6a9104336db9137327084c44846fd3d6692 /lib/Target/Mips | |
parent | 89703cf838c5d875875faf58b746a78fc33c2499 (diff) | |
download | external_llvm-af0e2726835e096e32c30c1b88cc7a6232a6ef69.zip external_llvm-af0e2726835e096e32c30c1b88cc7a6232a6ef69.tar.gz external_llvm-af0e2726835e096e32c30c1b88cc7a6232a6ef69.tar.bz2 |
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
Diffstat (limited to 'lib/Target/Mips')
-rw-r--r-- | lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |