From b55e068e53fccc609b7d9cd198ed9818c188a196 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 24 Sep 2009 05:44:53 +0000 Subject: [PATCH] unconditionally compute MMI even if the target doesn't support EH or Debug info, because the target may use it for other things, this fixes PR5036 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82684 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index dec78a398fa..6c5d4539916 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -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(); - if (MMI) - MMI->AnalyzeModule(M); - DW = getAnalysisIfAvailable(); - if (DW) - DW->BeginModule(&M, MMI, O, this, MAI); - } + MMI = getAnalysisIfAvailable(); + if (MMI) + MMI->AnalyzeModule(M); + DW = getAnalysisIfAvailable(); + if (DW) + DW->BeginModule(&M, MMI, O, this, MAI); return false; } -- 2.11.0