Remove caching of an unused subtarget from MSP430FrameLowering.
authorEric Christopher <echristo@gmail.com>
Fri, 27 Jun 2014 00:52:11 +0000 (00:52 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 27 Jun 2014 00:52:11 +0000 (00:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211830 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MSP430/MSP430FrameLowering.h
lib/Target/MSP430/MSP430TargetMachine.cpp

index d464dd9..fadfeed 100644 (file)
 #define MSP430_FRAMEINFO_H
 
 #include "MSP430.h"
-#include "MSP430Subtarget.h"
 #include "llvm/Target/TargetFrameLowering.h"
 
 namespace llvm {
-  class MSP430Subtarget;
-
 class MSP430FrameLowering : public TargetFrameLowering {
 protected:
-  const MSP430Subtarget &STI;
 
 public:
-  explicit MSP430FrameLowering(const MSP430Subtarget &sti)
-    : TargetFrameLowering(TargetFrameLowering::StackGrowsDown, 2, -2, 2),
-      STI(sti) {}
+  explicit MSP430FrameLowering()
+      : TargetFrameLowering(TargetFrameLowering::StackGrowsDown, 2, -2, 2) {}
 
   /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
   /// the function.
index 23a98aa..04f8f08 100644 (file)
@@ -36,7 +36,7 @@ MSP430TargetMachine::MSP430TargetMachine(const Target &T,
     // FIXME: Check DataLayout string.
     DL("e-m:e-p:16:16-i32:16:32-n8:16"),
     InstrInfo(*this), TLInfo(*this), TSInfo(DL),
-    FrameLowering(Subtarget) {
+    FrameLowering() {
   initAsmInfo();
 }