Make XCoreSelectionDAGInfo take a DataLayout since it only needs
authorEric Christopher <echristo@gmail.com>
Wed, 2 Jul 2014 00:10:05 +0000 (00:10 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 2 Jul 2014 00:10:05 +0000 (00:10 +0000)
that information.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212146 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/XCore/XCoreSelectionDAGInfo.cpp
lib/Target/XCore/XCoreSelectionDAGInfo.h
lib/Target/XCore/XCoreTargetMachine.cpp

index 2342b5a..91b33fd 100644 (file)
@@ -16,8 +16,8 @@ using namespace llvm;
 
 #define DEBUG_TYPE "xcore-selectiondag-info"
 
-XCoreSelectionDAGInfo::XCoreSelectionDAGInfo(const XCoreTargetMachine &TM)
-    : TargetSelectionDAGInfo(TM.getDataLayout()) {}
+XCoreSelectionDAGInfo::XCoreSelectionDAGInfo(const DataLayout &DL)
+    : TargetSelectionDAGInfo(&DL) {}
 
 XCoreSelectionDAGInfo::~XCoreSelectionDAGInfo() {
 }
index ea6af98..0079de1 100644 (file)
@@ -22,7 +22,7 @@ class XCoreTargetMachine;
 
 class XCoreSelectionDAGInfo : public TargetSelectionDAGInfo {
 public:
-  explicit XCoreSelectionDAGInfo(const XCoreTargetMachine &TM);
+  explicit XCoreSelectionDAGInfo(const DataLayout &DL);
   ~XCoreSelectionDAGInfo();
 
   SDValue
index 0fb21c5..014a7c2 100644 (file)
@@ -31,7 +31,7 @@ XCoreTargetMachine::XCoreTargetMachine(const Target &T, StringRef TT,
     InstrInfo(),
     FrameLowering(Subtarget),
     TLInfo(*this),
-    TSInfo(*this) {
+    TSInfo(DL) {
   initAsmInfo();
 }