summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/AsmWriterEmitter.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-02-24 08:30:20 +0000
committerBill Wendling <isanbard@gmail.com>2009-02-24 08:30:20 +0000
commitc5437ea42948f1e4cc89c0e8d944a380e6c880e7 (patch)
treeb8172788c0ab3e3f721cb36b1f6ac29499ed2ab0 /llvm/utils/TableGen/AsmWriterEmitter.cpp
parent0b0dcd987da5ea4f557c936616dc65f7adc8e187 (diff)
downloadbcm5719-llvm-c5437ea42948f1e4cc89c0e8d944a380e6c880e7.tar.gz
bcm5719-llvm-c5437ea42948f1e4cc89c0e8d944a380e6c880e7.zip
Overhaul my earlier submission due to feedback. It's a large patch, but most of
them are generic changes. - Use the "fast" flag that's already being passed into the asm printers instead of shoving it into the DwarfWriter. - Instead of calling "MI->getParent()->getParent()" for every MI, set the machine function when calling "runOnMachineFunction" in the asm printers. llvm-svn: 65379
Diffstat (limited to 'llvm/utils/TableGen/AsmWriterEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/AsmWriterEmitter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/AsmWriterEmitter.cpp b/llvm/utils/TableGen/AsmWriterEmitter.cpp
index 128b89363b6..e7fe8c369bd 100644
--- a/llvm/utils/TableGen/AsmWriterEmitter.cpp
+++ b/llvm/utils/TableGen/AsmWriterEmitter.cpp
@@ -641,9 +641,7 @@ void AsmWriterEmitter::run(std::ostream &O) {
O << "\";\n\n";
O << " if (TAI->doesSupportDebugInformation() &&\n"
- << " DW->ShouldEmitDwarfDebug() &&\n"
- << " !DW->getFastCodeGen()) {\n"
- << " const MachineFunction *MF = MI->getParent()->getParent();\n"
+ << " DW->ShouldEmitDwarfDebug() && !Fast) {\n"
<< " DebugLoc CurDL = MI->getDebugLoc();\n\n"
<< " if (!CurDL.isUnknown()) {\n"
<< " static DebugLocTuple PrevDLT(~0U, ~0U, ~0U);\n"
OpenPOWER on IntegriCloud