[llvm] r211830 - Remove caching of an unused subtarget from MSP430FrameLowering.
Eric Christopher
echristo at gmail.com
Thu Jun 26 17:52:11 PDT 2014
Author: echristo
Date: Thu Jun 26 19:52:11 2014
New Revision: 211830
URL: http://llvm.org/viewvc/llvm-project?rev=211830&view=rev
Log:
Remove caching of an unused subtarget from MSP430FrameLowering.
Modified:
llvm/trunk/lib/Target/MSP430/MSP430FrameLowering.h
llvm/trunk/lib/Target/MSP430/MSP430TargetMachine.cpp
Modified: llvm/trunk/lib/Target/MSP430/MSP430FrameLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430FrameLowering.h?rev=211830&r1=211829&r2=211830&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430FrameLowering.h (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430FrameLowering.h Thu Jun 26 19:52:11 2014
@@ -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.
Modified: llvm/trunk/lib/Target/MSP430/MSP430TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430TargetMachine.cpp?rev=211830&r1=211829&r2=211830&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430TargetMachine.cpp Thu Jun 26 19:52:11 2014
@@ -36,7 +36,7 @@ MSP430TargetMachine::MSP430TargetMachine
// 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();
}
More information about the llvm-commits
mailing list