diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/CodeGen/GCRootLowering.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/CodeGen/GCRootLowering.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/lib/CodeGen/GCRootLowering.cpp b/contrib/llvm-project/llvm/lib/CodeGen/GCRootLowering.cpp index 90571d090bfb..90e5f32f53b3 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/GCRootLowering.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/GCRootLowering.cpp @@ -24,6 +24,7 @@  #include "llvm/IR/Dominators.h"  #include "llvm/IR/IntrinsicInst.h"  #include "llvm/IR/Module.h" +#include "llvm/InitializePasses.h"  #include "llvm/Support/Debug.h"  #include "llvm/Support/ErrorHandling.h"  #include "llvm/Support/raw_ostream.h" @@ -249,7 +250,7 @@ GCMachineCodeAnalysis::GCMachineCodeAnalysis() : MachineFunctionPass(ID) {}  void GCMachineCodeAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {    MachineFunctionPass::getAnalysisUsage(AU);    AU.setPreservesAll(); -  AU.addRequired<MachineModuleInfo>(); +  AU.addRequired<MachineModuleInfoWrapperPass>();    AU.addRequired<GCModuleInfo>();  } @@ -310,7 +311,7 @@ bool GCMachineCodeAnalysis::runOnMachineFunction(MachineFunction &MF) {      return false;    FI = &getAnalysis<GCModuleInfo>().getFunctionInfo(MF.getFunction()); -  MMI = &getAnalysis<MachineModuleInfo>(); +  MMI = &getAnalysis<MachineModuleInfoWrapperPass>().getMMI();    TII = MF.getSubtarget().getInstrInfo();    // Find the size of the stack frame.  There may be no correct static frame  | 
