[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:
Diana Picus 2016-11-15 16:42:10 +00:00
parent 5c8c06592a
commit 2e14486c47
3 changed files with 4 additions and 8 deletions

View File

@ -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 {

View File

@ -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;

View File

@ -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