mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
Override runOnMachineFunction for ARMISelDAGToDAG so that we can
reset the subtarget on each function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209386 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -73,6 +73,13 @@ public:
|
|||||||
Subtarget(&TM.getSubtarget<ARMSubtarget>()) {
|
Subtarget(&TM.getSubtarget<ARMSubtarget>()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool runOnMachineFunction(MachineFunction &MF) override {
|
||||||
|
// Reset the subtarget each time through.
|
||||||
|
Subtarget = &TM.getSubtarget<ARMSubtarget>();
|
||||||
|
SelectionDAGISel::runOnMachineFunction(MF);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
const char *getPassName() const override {
|
const char *getPassName() const override {
|
||||||
return "ARM Instruction Selection";
|
return "ARM Instruction Selection";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user