From: Chris Lattner Date: Sun, 4 Apr 2010 05:09:10 +0000 (+0000) Subject: change this back too X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d32c8a561734e05ff78da4435de0e85e0eed88e1;p=oota-llvm.git change this back too git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100310 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 096bf918376..92946470e36 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -101,7 +101,7 @@ void AsmPrinter::getAnalysisUsage(AnalysisUsage &AU) const { } bool AsmPrinter::doInitialization(Module &M) { - MMI = &getAnalysis(); + MMI = getAnalysisIfAvailable(); MMI->AnalyzeModule(M); // Initialize TargetLoweringObjectFile.