summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PIC16/AsmPrinter
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/PIC16/AsmPrinter
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/PIC16/AsmPrinter')
-rw-r--r--llvm/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp b/llvm/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp
index a74ad661bc4..60ad2c7f8f9 100644
--- a/llvm/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp
+++ b/llvm/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp
@@ -43,13 +43,12 @@ PIC16AsmPrinter::PIC16AsmPrinter(formatted_raw_ostream &O, TargetMachine &TM,
}
bool PIC16AsmPrinter::printMachineInstruction(const MachineInstr *MI) {
- processDebugLoc(MI);
-
+ processDebugLoc(MI, true);
printInstruction(MI);
-
if (VerboseAsm && !MI->getDebugLoc().isUnknown())
EmitComments(*MI);
O << '\n';
+ processDebugLoc(MI, false);
return true;
}
OpenPOWER on IntegriCloud