]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commitdiff
Now that the optimization level is adjusting the feature string
authorEric Christopher <echristo@gmail.com>
Wed, 1 Oct 2014 21:05:35 +0000 (21:05 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 1 Oct 2014 21:05:35 +0000 (21:05 +0000)
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

lib/Target/PowerPC/PPCSubtarget.cpp
lib/Target/PowerPC/PPCSubtarget.h
lib/Target/PowerPC/PPCTargetMachine.cpp

index 3ed81b4bdcb6f4ec1da4c7afa8c39391045489ba..d59d62a403f86e7b497871b78cf7e5a97626acc5 100644 (file)
@@ -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) {}
 
index fd233d0ce7d87ae10c717628afbc9c853dd232e0..adf5aa15521befa40f80f047bbff0b61e1f23f08 100644 (file)
@@ -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.
index 908e15991fe2ba35188bcd592f223a90d221d48f..6645734fba716e77295e1e0255b4a2e27bcfb59c 100644 (file)
@@ -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();
 }