From: Eric Christopher Date: Wed, 1 Oct 2014 21:05:35 +0000 (+0000) Subject: Now that the optimization level is adjusting the feature string X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=406dccea991a05eb5e5d6dcc3477768af582ccfa Now that the optimization level is adjusting the feature string before we hit the subtarget, remove the constructor parameter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218817 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCSubtarget.cpp b/lib/Target/PowerPC/PPCSubtarget.cpp index 3ed81b4bdcb..d59d62a403f 100644 --- a/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/lib/Target/PowerPC/PPCSubtarget.cpp @@ -74,13 +74,12 @@ PPCSubtarget &PPCSubtarget::initializeSubtargetDependencies(StringRef CPU, } PPCSubtarget::PPCSubtarget(const std::string &TT, const std::string &CPU, - const std::string &FS, PPCTargetMachine &TM, - CodeGenOpt::Level OptLevel) + const std::string &FS, PPCTargetMachine &TM) : PPCGenSubtargetInfo(TT, CPU, FS), TargetTriple(TT), DL(getDataLayoutString(TargetTriple)), IsPPC64(TargetTriple.getArch() == Triple::ppc64 || TargetTriple.getArch() == Triple::ppc64le), - OptLevel(OptLevel), TargetABI(PPC_ABI_UNKNOWN), + TargetABI(PPC_ABI_UNKNOWN), FrameLowering(initializeSubtargetDependencies(CPU, FS)), InstrInfo(*this), TLInfo(TM), TSInfo(&DL) {} diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h index fd233d0ce7d..adf5aa15521 100644 --- a/lib/Target/PowerPC/PPCSubtarget.h +++ b/lib/Target/PowerPC/PPCSubtarget.h @@ -111,9 +111,6 @@ protected: bool HasLazyResolverStubs; bool IsLittleEndian; - /// OptLevel - What default optimization level we're emitting code for. - CodeGenOpt::Level OptLevel; - enum { PPC_ABI_UNKNOWN, PPC_ABI_ELFv1, @@ -130,8 +127,7 @@ public: /// of the specified triple. /// PPCSubtarget(const std::string &TT, const std::string &CPU, - const std::string &FS, PPCTargetMachine &TM, - CodeGenOpt::Level OptLevel); + const std::string &FS, PPCTargetMachine &TM); /// ParseSubtargetFeatures - Parses features string setting specified /// subtarget options. Definition of function is auto generated by tblgen. diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp index 908e15991fe..6645734fba7 100644 --- a/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -69,7 +69,7 @@ PPCTargetMachine::PPCTargetMachine(const Target &T, StringRef TT, StringRef CPU, CodeGenOpt::Level OL) : LLVMTargetMachine(T, TT, CPU, computeFSAdditions(FS, OL, TT), Options, RM, CM, OL), - Subtarget(TT, CPU, TargetFS, *this, OL) { + Subtarget(TT, CPU, TargetFS, *this) { initAsmInfo(); }