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:
Eric Christopher 2014-06-27 00:37:57 +00:00
parent 061b8c389c
commit 9fe7eae086
3 changed files with 4 additions and 4 deletions

View File

@ -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() {
}

View File

@ -22,7 +22,7 @@ class MSP430TargetMachine;
class MSP430SelectionDAGInfo : public TargetSelectionDAGInfo {
public:
explicit MSP430SelectionDAGInfo(const MSP430TargetMachine &TM);
explicit MSP430SelectionDAGInfo(const DataLayout &DL);
~MSP430SelectionDAGInfo();
};

View File

@ -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();
}