forked from OSchip/llvm-project
Make XCoreSelectionDAGInfo take a DataLayout since it only needs
that information. llvm-svn: 212146
This commit is contained in:
parent
14bbef5ac7
commit
99a5ba8b20
|
@ -16,8 +16,8 @@ using namespace llvm;
|
||||||
|
|
||||||
#define DEBUG_TYPE "xcore-selectiondag-info"
|
#define DEBUG_TYPE "xcore-selectiondag-info"
|
||||||
|
|
||||||
XCoreSelectionDAGInfo::XCoreSelectionDAGInfo(const XCoreTargetMachine &TM)
|
XCoreSelectionDAGInfo::XCoreSelectionDAGInfo(const DataLayout &DL)
|
||||||
: TargetSelectionDAGInfo(TM.getDataLayout()) {}
|
: TargetSelectionDAGInfo(&DL) {}
|
||||||
|
|
||||||
XCoreSelectionDAGInfo::~XCoreSelectionDAGInfo() {
|
XCoreSelectionDAGInfo::~XCoreSelectionDAGInfo() {
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ class XCoreTargetMachine;
|
||||||
|
|
||||||
class XCoreSelectionDAGInfo : public TargetSelectionDAGInfo {
|
class XCoreSelectionDAGInfo : public TargetSelectionDAGInfo {
|
||||||
public:
|
public:
|
||||||
explicit XCoreSelectionDAGInfo(const XCoreTargetMachine &TM);
|
explicit XCoreSelectionDAGInfo(const DataLayout &DL);
|
||||||
~XCoreSelectionDAGInfo();
|
~XCoreSelectionDAGInfo();
|
||||||
|
|
||||||
SDValue
|
SDValue
|
||||||
|
|
|
@ -31,7 +31,7 @@ XCoreTargetMachine::XCoreTargetMachine(const Target &T, StringRef TT,
|
||||||
InstrInfo(),
|
InstrInfo(),
|
||||||
FrameLowering(Subtarget),
|
FrameLowering(Subtarget),
|
||||||
TLInfo(*this),
|
TLInfo(*this),
|
||||||
TSInfo(*this) {
|
TSInfo(DL) {
|
||||||
initAsmInfo();
|
initAsmInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue