summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MSP430
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-27 00:52:11 +0000
committerEric Christopher <echristo@gmail.com>2014-06-27 00:52:11 +0000
commitf8e346847d14738a0eb00af6425c6cbf77e56a2c (patch)
tree0794461e4b31adce5875ad59e34e4a474aa1703b /llvm/lib/Target/MSP430
parentfb251f51a9118a64376405a277ee6777abd7dca4 (diff)
downloadbcm5719-llvm-f8e346847d14738a0eb00af6425c6cbf77e56a2c.tar.gz
bcm5719-llvm-f8e346847d14738a0eb00af6425c6cbf77e56a2c.zip
Remove caching of an unused subtarget from MSP430FrameLowering.
llvm-svn: 211830
Diffstat (limited to 'llvm/lib/Target/MSP430')
-rw-r--r--llvm/lib/Target/MSP430/MSP430FrameLowering.h9
-rw-r--r--llvm/lib/Target/MSP430/MSP430TargetMachine.cpp2
2 files changed, 3 insertions, 8 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430FrameLowering.h b/llvm/lib/Target/MSP430/MSP430FrameLowering.h
index d464dd99698..fadfeedd185 100644
--- a/llvm/lib/Target/MSP430/MSP430FrameLowering.h
+++ b/llvm/lib/Target/MSP430/MSP430FrameLowering.h
@@ -15,20 +15,15 @@
#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.
diff --git a/llvm/lib/Target/MSP430/MSP430TargetMachine.cpp b/llvm/lib/Target/MSP430/MSP430TargetMachine.cpp
index 23a98aa6d76..04f8f08cc5d 100644
--- a/llvm/lib/Target/MSP430/MSP430TargetMachine.cpp
+++ b/llvm/lib/Target/MSP430/MSP430TargetMachine.cpp
@@ -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();
}
OpenPOWER on IntegriCloud