forked from OSchip/llvm-project
parent
aa70abba05
commit
0124fe38a6
|
@ -101,7 +101,7 @@ void AsmPrinter::getAnalysisUsage(AnalysisUsage &AU) const {
|
|||
}
|
||||
|
||||
bool AsmPrinter::doInitialization(Module &M) {
|
||||
MMI = &getAnalysis<MachineModuleInfo>();
|
||||
MMI = getAnalysisIfAvailable<MachineModuleInfo>();
|
||||
MMI->AnalyzeModule(M);
|
||||
|
||||
// Initialize TargetLoweringObjectFile.
|
||||
|
|
Loading…
Reference in New Issue