diff --git a/lib/Target/Nios2/Nios2TargetMachine.cpp b/lib/Target/Nios2/Nios2TargetMachine.cpp index bea20d84846..7370dac2ce3 100644 --- a/lib/Target/Nios2/Nios2TargetMachine.cpp +++ b/lib/Target/Nios2/Nios2TargetMachine.cpp @@ -43,8 +43,7 @@ Nios2TargetMachine::Nios2TargetMachine(const Target &T, const Triple &TT, Optional 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(); } - const Nios2Subtarget &getNios2Subtarget() const { - return *getNios2TargetMachine().getSubtargetImpl(); - } void addCodeGenPrepare() override; void addIRPasses() override; }; diff --git a/lib/Target/Nios2/Nios2TargetMachine.h b/lib/Target/Nios2/Nios2TargetMachine.h index 2cf8a10c57e..503187778c1 100644 --- a/lib/Target/Nios2/Nios2TargetMachine.h +++ b/lib/Target/Nios2/Nios2TargetMachine.h @@ -19,8 +19,6 @@ namespace llvm { class Nios2TargetMachine : public LLVMTargetMachine { - Nios2Subtarget DefaultSubtarget; - mutable StringMap> 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