]> granicus.if.org Git - llvm/commitdiff
Remove the default subtarget from the x86 port as it isn't necessary (or
authorEric Christopher <echristo@gmail.com>
Tue, 20 Sep 2016 22:19:33 +0000 (22:19 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 20 Sep 2016 22:19:33 +0000 (22:19 +0000)
correct) anymore.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282031 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetMachine.cpp
lib/Target/X86/X86TargetMachine.h

index 8abcd4481f260c81c7fb5cd155e49faaa26ffb6b..cd48211dbabd8def5011caba648ee3da9d75c176 100644 (file)
@@ -151,8 +151,7 @@ X86TargetMachine::X86TargetMachine(const Target &T, const Triple &TT,
                                    CodeModel::Model CM, CodeGenOpt::Level OL)
     : LLVMTargetMachine(T, computeDataLayout(TT), TT, CPU, FS, Options,
                         getEffectiveRelocModel(TT, RM), CM, OL),
-      TLOF(createTLOF(getTargetTriple())),
-      Subtarget(TT, CPU, FS, *this, Options.StackAlignmentOverride) {
+      TLOF(createTLOF(getTargetTriple())) {
   // Windows stack unwinder gets confused when execution flow "falls through"
   // after a call to 'noreturn' function.
   // To prevent that, we emit a trap for 'unreachable' IR instructions.
index 4734a44315a9547bd54e312e91bd38268a870dc8..d756d07926dd000cbd1e5d5451679736218bddf6 100644 (file)
@@ -24,8 +24,6 @@ class StringRef;
 
 class X86TargetMachine final : public LLVMTargetMachine {
   std::unique_ptr<TargetLoweringObjectFile> TLOF;
-  X86Subtarget Subtarget;
-
   mutable StringMap<std::unique_ptr<X86Subtarget>> SubtargetMap;
 
 public: