mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Only access TLOF via the TargetMachine, not TargetLowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227949 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -116,7 +116,7 @@ static MCContext *addPassesToGenerateCode(LLVMTargetMachine *TM,
|
||||
// all the per-module stuff we're generating, including MCContext.
|
||||
MachineModuleInfo *MMI = new MachineModuleInfo(
|
||||
*TM->getMCAsmInfo(), *TM->getSubtargetImpl()->getRegisterInfo(),
|
||||
&TM->getSubtargetImpl()->getTargetLowering()->getObjFileLowering());
|
||||
TM->getObjFileLowering());
|
||||
PM.add(MMI);
|
||||
|
||||
// Set up a MachineFunction for the rest of CodeGen to work on.
|
||||
|
||||
Reference in New Issue
Block a user