summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-10-06 02:19:11 +0000
committerDevang Patel <dpatel@apple.com>2009-10-06 02:19:11 +0000
commit051454a16f1db9c4081baa786ab7b724be00bb30 (patch)
tree63a9dbd6daf5a3941ee16928823691888187eab9 /llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
parent2980a220287ccbc6d51e41c995971bcf75ea24ce (diff)
downloadbcm5719-llvm-051454a16f1db9c4081baa786ab7b724be00bb30.tar.gz
bcm5719-llvm-051454a16f1db9c4081baa786ab7b724be00bb30.zip
Update processDebugLoc() so that it can be used to process debug info before and after printing an instruction.
llvm-svn: 83363
Diffstat (limited to 'llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp b/llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
index fd6d13eb3a3..2159555849a 100644
--- a/llvm/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud