mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 17:39:16 +00:00
Remove caching of an unused subtarget from MSP430FrameLowering.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211830 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a50d4dd9b0
commit
4b45f30be3
@ -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.
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user