forked from OSchip/llvm-project
parent
a4c5a47b97
commit
b1be1aa8f8
|
@ -359,9 +359,9 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
|
|||
|
||||
// Install a MachineModuleInfo class, which is an immutable pass that holds
|
||||
// all the per-module stuff we're generating, including MCContext.
|
||||
MachineModuleInfo *MMI = new MachineModuleInfo(*getMCAsmInfo(),
|
||||
*getRegisterInfo(),
|
||||
&getTargetLowering()->getObjFileLowering());
|
||||
MachineModuleInfo *MMI =
|
||||
new MachineModuleInfo(*getMCAsmInfo(), *getRegisterInfo(),
|
||||
&getTargetLowering()->getObjFileLowering());
|
||||
PM.add(MMI);
|
||||
OutContext = &MMI->getContext(); // Return the MCContext specifically by-ref.
|
||||
|
||||
|
|
Loading…
Reference in New Issue