Overhaul my earlier submission due to feedback. It's a large patch, but most of
[oota-llvm.git] / utils / TableGen / AsmWriterEmitter.cpp
index 128b89363b6c0fe6ff5911d0dd81e54452cc8c92..e7fe8c369bd7174353246628539997c90a70378d 100644 (file)
@@ -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"