Make XCoreSelectionDAGInfo take a DataLayout since it only needs
[oota-llvm.git] / lib / Target / XCore / XCoreSelectionDAGInfo.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() {
 }