mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-15 04:08:07 +00:00
Avoid relying on the SelectionDAG for initializing the MachineFunction and
TargetLoweringInfo variables for the scheduler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59082 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3af7fd5038
commit
eb9dbf117f
@ -24,10 +24,10 @@ ScheduleDAG::ScheduleDAG(SelectionDAG &dag, MachineBasicBlock *bb,
|
||||
const TargetMachine &tm)
|
||||
: DAG(dag), BB(bb), TM(tm), MRI(BB->getParent()->getRegInfo()) {
|
||||
TII = TM.getInstrInfo();
|
||||
MF = &DAG.getMachineFunction();
|
||||
MF = BB->getParent();
|
||||
TRI = TM.getRegisterInfo();
|
||||
TLI = &DAG.getTargetLoweringInfo();
|
||||
ConstPool = BB->getParent()->getConstantPool();
|
||||
TLI = TM.getTargetLowering();
|
||||
ConstPool = MF->getConstantPool();
|
||||
}
|
||||
|
||||
/// CheckForPhysRegDependency - Check if the dependency between def and use of
|
||||
|
Loading…
Reference in New Issue
Block a user