]> granicus.if.org Git - llvm/commitdiff
Remove the default subtarget from the new Nios2 port. It's unused and deprecated.
authorEric Christopher <echristo@gmail.com>
Wed, 20 Sep 2017 20:32:23 +0000 (20:32 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 20 Sep 2017 20:32:23 +0000 (20:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313808 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Nios2/Nios2TargetMachine.cpp
lib/Target/Nios2/Nios2TargetMachine.h

index bea20d8484658451246774a25fc4da81c5690420..7370dac2ce38cd9e76a96b221bcbf89aa02b86a8 100644 (file)
@@ -43,8 +43,7 @@ Nios2TargetMachine::Nios2TargetMachine(const Target &T, const Triple &TT,
                                        Optional<CodeModel::Model> CM,
                                        CodeGenOpt::Level OL, bool JIT)
     : LLVMTargetMachine(T, computeDataLayout(), TT, CPU, FS, Options,
-                        getEffectiveRelocModel(RM), *CM, OL),
-      DefaultSubtarget(TT, CPU, FS, *this) {}
+                        getEffectiveRelocModel(RM), *CM, OL) {}
 
 Nios2TargetMachine::~Nios2TargetMachine() {}
 
@@ -82,9 +81,6 @@ public:
     return getTM<Nios2TargetMachine>();
   }
 
-  const Nios2Subtarget &getNios2Subtarget() const {
-    return *getNios2TargetMachine().getSubtargetImpl();
-  }
   void addCodeGenPrepare() override;
   void addIRPasses() override;
 };
index 2cf8a10c57e6b0a511768898ba5034bd6e1da43c..503187778c1bf79708547eb87fac28dc8b28f988 100644 (file)
@@ -19,8 +19,6 @@
 
 namespace llvm {
 class Nios2TargetMachine : public LLVMTargetMachine {
-  Nios2Subtarget DefaultSubtarget;
-
   mutable StringMap<std::unique_ptr<Nios2Subtarget>> SubtargetMap;
 
 public:
@@ -30,8 +28,6 @@ public:
                      CodeGenOpt::Level OL, bool JIT);
   ~Nios2TargetMachine() override;
 
-  const Nios2Subtarget *getSubtargetImpl() const { return &DefaultSubtarget; }
-
   const Nios2Subtarget *getSubtargetImpl(const Function &F) const override;
 
   // Pass Pipeline Configuration