mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Have MSP430SelectionDAGInfo constructor take a DataLayout rather
than a target machine since it doesn't need anything past the DataLayout. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211826 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
061b8c389c
commit
9fe7eae086
@ -16,8 +16,8 @@ using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "msp430-selectiondag-info"
|
||||
|
||||
MSP430SelectionDAGInfo::MSP430SelectionDAGInfo(const MSP430TargetMachine &TM)
|
||||
: TargetSelectionDAGInfo(TM.getDataLayout()) {}
|
||||
MSP430SelectionDAGInfo::MSP430SelectionDAGInfo(const DataLayout &DL)
|
||||
: TargetSelectionDAGInfo(&DL) {}
|
||||
|
||||
MSP430SelectionDAGInfo::~MSP430SelectionDAGInfo() {
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ class MSP430TargetMachine;
|
||||
|
||||
class MSP430SelectionDAGInfo : public TargetSelectionDAGInfo {
|
||||
public:
|
||||
explicit MSP430SelectionDAGInfo(const MSP430TargetMachine &TM);
|
||||
explicit MSP430SelectionDAGInfo(const DataLayout &DL);
|
||||
~MSP430SelectionDAGInfo();
|
||||
};
|
||||
|
||||
|
@ -35,7 +35,7 @@ MSP430TargetMachine::MSP430TargetMachine(const Target &T,
|
||||
Subtarget(TT, CPU, FS),
|
||||
// FIXME: Check DataLayout string.
|
||||
DL("e-m:e-p:16:16-i32:16:32-n8:16"),
|
||||
InstrInfo(*this), TLInfo(*this), TSInfo(*this),
|
||||
InstrInfo(*this), TLInfo(*this), TSInfo(DL),
|
||||
FrameLowering(Subtarget) {
|
||||
initAsmInfo();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user