diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-09-09 20:34:59 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-09-09 20:34:59 +0000 |
| commit | 716a8c92d0a9b241aa84fd8884892c6565810436 (patch) | |
| tree | db2b4f5932995daa15242ba7c5393068ede08169 /llvm/lib/Target/XCore | |
| parent | 6b81770040ee2b25a5ede5a51206dc1dba98b28a (diff) | |
| download | bcm5719-llvm-716a8c92d0a9b241aa84fd8884892c6565810436.tar.gz bcm5719-llvm-716a8c92d0a9b241aa84fd8884892c6565810436.zip | |
hoist the call to processDebugLoc out of the generated
asm printer into the "printInstruction" routine. This
fixes a problem where the experimental asmprinter would
drop debug labels in some cases, and fixes issues on ppc/xcore
where pseudo instructions like "mr" didn't get debug locs properly.
It is annoying that this moves the call from one place into each
target, but a future set of more invasive refactorings will fix
that problem.
llvm-svn: 81377
Diffstat (limited to 'llvm/lib/Target/XCore')
| -rw-r--r-- | llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp b/llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp index 9ee0e86da1d..801a1b33c85 100644 --- a/llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp +++ b/llvm/lib/Target/XCore/AsmPrinter/XCoreAsmPrinter.cpp @@ -355,6 +355,8 @@ bool XCoreAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo, void XCoreAsmPrinter::printMachineInstruction(const MachineInstr *MI) { ++EmittedInsts; + processDebugLoc(MI->getDebugLoc()); + // Check for mov mnemonic unsigned src, dst, srcSR, dstSR; if (TM.getInstrInfo()->isMoveInstr(*MI, src, dst, srcSR, dstSR)) { |

