[llvm] r313808 - Remove the default subtarget from the new Nios2 port. It's unused and deprecated.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 20 13:32:23 PDT 2017
Author: echristo
Date: Wed Sep 20 13:32:23 2017
New Revision: 313808
URL: http://llvm.org/viewvc/llvm-project?rev=313808&view=rev
Log:
Remove the default subtarget from the new Nios2 port. It's unused and deprecated.
Modified:
llvm/trunk/lib/Target/Nios2/Nios2TargetMachine.cpp
llvm/trunk/lib/Target/Nios2/Nios2TargetMachine.h
Modified: llvm/trunk/lib/Target/Nios2/Nios2TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Nios2/Nios2TargetMachine.cpp?rev=313808&r1=313807&r2=313808&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Nios2/Nios2TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/Nios2/Nios2TargetMachine.cpp Wed Sep 20 13:32:23 2017
@@ -43,8 +43,7 @@ Nios2TargetMachine::Nios2TargetMachine(c
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;
};
Modified: llvm/trunk/lib/Target/Nios2/Nios2TargetMachine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Nios2/Nios2TargetMachine.h?rev=313808&r1=313807&r2=313808&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Nios2/Nios2TargetMachine.h (original)
+++ llvm/trunk/lib/Target/Nios2/Nios2TargetMachine.h Wed Sep 20 13:32:23 2017
@@ -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
More information about the llvm-commits
mailing list