unconditionally compute MMI even if the target doesn't support EH or Debug info,...
authorChris Lattner <sabre@nondot.org>
Thu, 24 Sep 2009 05:44:53 +0000 (05:44 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 24 Sep 2009 05:44:53 +0000 (05:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82684 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/AsmPrinter.cpp

index dec78a398fa64aa3ce34d0251a3748dc93c56b7c..6c5d45399161f53072df9453a8ea39b8066d31fb 100644 (file)
@@ -130,15 +130,12 @@ bool AsmPrinter::doInitialization(Module &M) {
       << '\n' << MAI->getCommentString()
       << " End of file scope inline assembly\n";
 
-  if (MAI->doesSupportDebugInformation() ||
-      MAI->doesSupportExceptionHandling()) {
-    MMI = getAnalysisIfAvailable<MachineModuleInfo>();
-    if (MMI)
-      MMI->AnalyzeModule(M);
-    DW = getAnalysisIfAvailable<DwarfWriter>();
-    if (DW)
-      DW->BeginModule(&M, MMI, O, this, MAI);
-  }
+  MMI = getAnalysisIfAvailable<MachineModuleInfo>();
+  if (MMI)
+    MMI->AnalyzeModule(M);
+  DW = getAnalysisIfAvailable<DwarfWriter>();
+  if (DW)
+    DW->BeginModule(&M, MMI, O, this, MAI);
 
   return false;
 }