[llvm-commits] [llvm] r65034 - /llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
Bill Wendling
isanbard at gmail.com
Thu Feb 19 00:06:13 PST 2009
Author: void
Date: Thu Feb 19 02:06:12 2009
New Revision: 65034
URL: http://llvm.org/viewvc/llvm-project?rev=65034&view=rev
Log:
Forgot to check that debug information is supported.
Modified:
llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp?rev=65034&r1=65033&r2=65034&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp Thu Feb 19 02:06:12 2009
@@ -640,7 +640,7 @@
}
O << "\";\n\n";
- O << " {\n"
+ O << " if (TAI->doesSupportDebugInformation()) {\n"
<< " const MachineFunction *MF = MI->getParent()->getParent();\n"
<< " static DebugLoc PrevDL = DebugLoc::getUnknownLoc();\n"
<< " DebugLoc CurDL = MI->getDebugLoc();\n\n"
@@ -649,7 +649,7 @@
<< " printLabel(DW->RecordSourceLine(DLT.Line, DLT.Col, DLT.Src));\n"
<< " }\n\n"
<< " PrevDL = CurDL;\n"
- << " }\n";
+ << " }\n\n";
O << " if (MI->getOpcode() == TargetInstrInfo::INLINEASM) {\n"
<< " O << \"\\t\";\n"
More information about the llvm-commits
mailing list