forked from OSchip/llvm-project
[PPC] Remove old PPCSubTarget variable.
The PPCSubTarget variable has been replaced with the Subtarget variable. This removes the remaining instances of PPCSubTarget as they are no longer necessary.
This commit is contained in:
parent
781c476ce0
commit
4bdab54826
|
@ -86,7 +86,6 @@ typedef struct Address {
|
|||
class PPCFastISel final : public FastISel {
|
||||
|
||||
const TargetMachine &TM;
|
||||
const PPCSubtarget *PPCSubTarget;
|
||||
const PPCSubtarget *Subtarget;
|
||||
PPCFunctionInfo *PPCFuncInfo;
|
||||
const TargetInstrInfo &TII;
|
||||
|
@ -97,7 +96,6 @@ class PPCFastISel final : public FastISel {
|
|||
explicit PPCFastISel(FunctionLoweringInfo &FuncInfo,
|
||||
const TargetLibraryInfo *LibInfo)
|
||||
: FastISel(FuncInfo, LibInfo), TM(FuncInfo.MF->getTarget()),
|
||||
PPCSubTarget(&FuncInfo.MF->getSubtarget<PPCSubtarget>()),
|
||||
Subtarget(&FuncInfo.MF->getSubtarget<PPCSubtarget>()),
|
||||
PPCFuncInfo(FuncInfo.MF->getInfo<PPCFunctionInfo>()),
|
||||
TII(*Subtarget->getInstrInfo()), TLI(*Subtarget->getTargetLowering()),
|
||||
|
|
|
@ -139,7 +139,6 @@ namespace {
|
|||
///
|
||||
class PPCDAGToDAGISel : public SelectionDAGISel {
|
||||
const PPCTargetMachine &TM;
|
||||
const PPCSubtarget *PPCSubTarget = nullptr;
|
||||
const PPCSubtarget *Subtarget = nullptr;
|
||||
const PPCTargetLowering *PPCLowering = nullptr;
|
||||
unsigned GlobalBaseReg = 0;
|
||||
|
@ -151,7 +150,6 @@ namespace {
|
|||
bool runOnMachineFunction(MachineFunction &MF) override {
|
||||
// Make sure we re-emit a set of the global base reg if necessary
|
||||
GlobalBaseReg = 0;
|
||||
PPCSubTarget = &MF.getSubtarget<PPCSubtarget>();
|
||||
Subtarget = &MF.getSubtarget<PPCSubtarget>();
|
||||
PPCLowering = Subtarget->getTargetLowering();
|
||||
SelectionDAGISel::runOnMachineFunction(MF);
|
||||
|
|
Loading…
Reference in New Issue