mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-10 14:10:58 +00:00
[ARM] GlobalISel: Remove unused members. NFCI
This silences some warnings that I didn't see with my host compiler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286981 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5c8c06592a
commit
2e14486c47
@ -25,10 +25,9 @@ using namespace llvm;
|
||||
#error "You shouldn't build this"
|
||||
#endif
|
||||
|
||||
ARMInstructionSelector::ARMInstructionSelector(const ARMBaseTargetMachine &TM,
|
||||
const ARMSubtarget &STI,
|
||||
ARMInstructionSelector::ARMInstructionSelector(const ARMSubtarget &STI,
|
||||
const ARMRegisterBankInfo &RBI)
|
||||
: InstructionSelector(), TM(TM), STI(STI), TII(*STI.getInstrInfo()),
|
||||
: InstructionSelector(), TII(*STI.getInstrInfo()),
|
||||
TRI(*STI.getRegisterInfo()), RBI(RBI) {}
|
||||
|
||||
bool ARMInstructionSelector::select(llvm::MachineInstr &I) const {
|
||||
|
@ -24,15 +24,12 @@ class ARMSubtarget;
|
||||
|
||||
class ARMInstructionSelector : public InstructionSelector {
|
||||
public:
|
||||
ARMInstructionSelector(const ARMBaseTargetMachine &TM,
|
||||
const ARMSubtarget &STI,
|
||||
ARMInstructionSelector(const ARMSubtarget &STI,
|
||||
const ARMRegisterBankInfo &RBI);
|
||||
|
||||
virtual bool select(MachineInstr &I) const override;
|
||||
|
||||
private:
|
||||
const ARMBaseTargetMachine &TM;
|
||||
const ARMSubtarget &STI;
|
||||
const ARMBaseInstrInfo &TII;
|
||||
const ARMBaseRegisterInfo &TRI;
|
||||
const ARMRegisterBankInfo &RBI;
|
||||
|
@ -307,7 +307,7 @@ ARMBaseTargetMachine::getSubtargetImpl(const Function &F) const {
|
||||
// FIXME: At this point, we can't rely on Subtarget having RBI.
|
||||
// It's awkward to mix passing RBI and the Subtarget; should we pass
|
||||
// TII/TRI as well?
|
||||
GISel->InstSelector.reset(new ARMInstructionSelector(*this, *I, *RBI));
|
||||
GISel->InstSelector.reset(new ARMInstructionSelector(*I, *RBI));
|
||||
|
||||
GISel->RegBankInfo.reset(RBI);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user