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/utils/TableGen | |
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/utils/TableGen')
-rw-r--r-- | llvm/utils/TableGen/AsmWriterEmitter.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/AsmWriterEmitter.cpp b/llvm/utils/TableGen/AsmWriterEmitter.cpp index 1e85ff9b7f2..34dc30f6048 100644 --- a/llvm/utils/TableGen/AsmWriterEmitter.cpp +++ b/llvm/utils/TableGen/AsmWriterEmitter.cpp @@ -726,8 +726,6 @@ void AsmWriterEmitter::run(raw_ostream &O) { } O << "\";\n\n"; - O << " processDebugLoc(MI->getDebugLoc());\n\n"; - O << "\n#ifndef NO_ASM_WRITER_BOILERPLATE\n"; O << " if (MI->getOpcode() == TargetInstrInfo::INLINEASM) {\n" |