mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Override runOnMachineFunction for X86ISelDAGToDAG so that we can
reset the subtarget on each function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209384 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
26bbeece29
commit
c5f6f15fe5
@ -162,6 +162,13 @@ namespace {
|
||||
return "X86 DAG->DAG Instruction Selection";
|
||||
}
|
||||
|
||||
bool runOnMachineFunction(MachineFunction &MF) override {
|
||||
// Reset the subtarget each time through.
|
||||
Subtarget = &TM.getSubtarget<X86Subtarget>();
|
||||
SelectionDAGISel::runOnMachineFunction(MF);
|
||||
return true;
|
||||
}
|
||||
|
||||
void EmitFunctionEntryCode() override;
|
||||
|
||||
bool IsProfitableToFold(SDValue N, SDNode *U, SDNode *Root) const override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user