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 | 5450fc15cb5de674d4e5203ab9ace59d3d6c38e5 (patch) | |
| tree | 934ac6a9104336db9137327084c44846fd3d6692 /lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp | |
| parent | ac35dcf9887f9e7883745876525c2a7dc39bf8d4 (diff) | |
| download | external_llvm-5450fc15cb5de674d4e5203ab9ace59d3d6c38e5.zip external_llvm-5450fc15cb5de674d4e5203ab9ace59d3d6c38e5.tar.gz external_llvm-5450fc15cb5de674d4e5203ab9ace59d3d6c38e5.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/PIC16/AsmPrinter/PIC16AsmPrinter.cpp')
| -rw-r--r-- | lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp b/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp index a74ad66..60ad2c7 100644 --- a/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp +++ b/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; } |
