]> granicus.if.org Git - llvm/commitdiff
[ARM] GlobalISel: Remove unused members. NFCI
authorDiana Picus <diana.picus@linaro.org>
Tue, 15 Nov 2016 16:42:10 +0000 (16:42 +0000)
committerDiana Picus <diana.picus@linaro.org>
Tue, 15 Nov 2016 16:42:10 +0000 (16:42 +0000)
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

lib/Target/ARM/ARMInstructionSelector.cpp
lib/Target/ARM/ARMInstructionSelector.h
lib/Target/ARM/ARMTargetMachine.cpp

index 5905963bcb3555113ad1dd434a2430a640bd5872..69b94b6b1f4f7c2b7f21a617a90b83a7b9a368aa 100644 (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 {
index 3b32ce4746d2443200c404e2049d007aa3ca791d..5072cdd60ce46b5619de597ae53fc9916d1f6d94 100644 (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;
index d7d7a0e8d486e3bf2c9c226beb3415adfeab0955..7c24c2a3dfd51f1e53f184c3c03d52251ec76113 100644 (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