[llvm-commits] [llvm] r65183 - /llvm/branches/Apple/Dib/utils/TableGen/AsmWriterEmitter.cpp

Bill Wendling isanbard at gmail.com
Fri Feb 20 14:29:40 PST 2009


Author: void
Date: Fri Feb 20 16:29:39 2009
New Revision: 65183

URL: http://llvm.org/viewvc/llvm-project?rev=65183&view=rev
Log:
Pull r65034 into Dib:

Forgot to check that debug information is supported.

Modified:
    llvm/branches/Apple/Dib/utils/TableGen/AsmWriterEmitter.cpp

Modified: llvm/branches/Apple/Dib/utils/TableGen/AsmWriterEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/utils/TableGen/AsmWriterEmitter.cpp?rev=65183&r1=65182&r2=65183&view=diff

==============================================================================
--- llvm/branches/Apple/Dib/utils/TableGen/AsmWriterEmitter.cpp (original)
+++ llvm/branches/Apple/Dib/utils/TableGen/AsmWriterEmitter.cpp Fri Feb 20 16:29:39 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