summaryrefslogtreecommitdiff
path: root/lib/Target/MSP430/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
commitaf0e2726835e096e32c30c1b88cc7a6232a6ef69 (patch)
tree934ac6a9104336db9137327084c44846fd3d6692 /lib/Target/MSP430/AsmPrinter
parent89703cf838c5d875875faf58b746a78fc33c2499 (diff)
downloadllvm-af0e2726835e096e32c30c1b88cc7a6232a6ef69.tar.gz
llvm-af0e2726835e096e32c30c1b88cc7a6232a6ef69.tar.bz2
llvm-af0e2726835e096e32c30c1b88cc7a6232a6ef69.tar.xz
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/MSP430/AsmPrinter')
-rw-r--r--lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp b/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
index 7dbd5ab483..b6d268d5f7 100644
--- a/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
+++ b/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
@@ -148,7 +148,7 @@ bool MSP430AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
void MSP430AsmPrinter::printMachineInstruction(const MachineInstr *MI) {
++EmittedInsts;
- processDebugLoc(MI);
+ processDebugLoc(MI, true);
// Call the autogenerated instruction printer routines.
printInstruction(MI);
@@ -156,6 +156,8 @@ void MSP430AsmPrinter::printMachineInstruction(const MachineInstr *MI) {
if (VerboseAsm && !MI->getDebugLoc().isUnknown())
EmitComments(*MI);
O << '\n';
+
+ processDebugLoc(MI, false);
}
void MSP430AsmPrinter::printOperand(const MachineInstr *MI, int OpNum,