1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Remove the default subtarget from the new Nios2 port. It's unused and deprecated.

llvm-svn: 313808
This commit is contained in:
Eric Christopher 2017-09-20 20:32:23 +00:00
parent f82fa532e3
commit 1fcf5554be
2 changed files with 1 additions and 9 deletions

View 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;
};

View 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