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 2342b5a9bbe4445d84ceedaac19d55ecda93d887..91b33fd6559cfe4abdf5951d93ed051def0d3963 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 ea6af980c01fb57ba270ac170acdf6e9030a0123..0079de1798b2d05ff2918f0700f6769819108221 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 0fb21c5d7dfbce2b68db1ea8efe17e5cef2ae167..014a7c2071ea27ce89437097c7018a653a8827bd 100644 (file)
@@ -31,7 +31,7 @@ XCoreTargetMachine::XCoreTargetMachine(const Target &T, StringRef TT,
     InstrInfo(),
     FrameLowering(Subtarget),
     TLInfo(*this),
-    TSInfo(*this) {
+    TSInfo(DL) {
   initAsmInfo();
 }