Have MipsSelectionDAGInfo constructor take a DataLayout rather
authorEric Christopher <echristo@gmail.com>
Fri, 27 Jun 2014 04:38:30 +0000 (04:38 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 27 Jun 2014 04:38:30 +0000 (04:38 +0000)
than a target machine since it doesn't need anything past the
DataLayout.

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

lib/Target/Mips/MipsSelectionDAGInfo.cpp
lib/Target/Mips/MipsSelectionDAGInfo.h
lib/Target/Mips/MipsTargetMachine.cpp

index c8e995a..edd8f67 100644 (file)
@@ -16,8 +16,8 @@ using namespace llvm;
 
 #define DEBUG_TYPE "mips-selectiondag-info"
 
-MipsSelectionDAGInfo::MipsSelectionDAGInfo(const MipsTargetMachine &TM)
-    : TargetSelectionDAGInfo(TM.getDataLayout()) {}
+MipsSelectionDAGInfo::MipsSelectionDAGInfo(const DataLayout &DL)
+    : TargetSelectionDAGInfo(&DL) {}
 
 MipsSelectionDAGInfo::~MipsSelectionDAGInfo() {
 }
index 6cafb55..2b3d527 100644 (file)
@@ -22,7 +22,7 @@ class MipsTargetMachine;
 
 class MipsSelectionDAGInfo : public TargetSelectionDAGInfo {
 public:
-  explicit MipsSelectionDAGInfo(const MipsTargetMachine &TM);
+  explicit MipsSelectionDAGInfo(const DataLayout &DL);
   ~MipsSelectionDAGInfo();
 };
 
index 984c58e..20d5214 100644 (file)
@@ -91,7 +91,7 @@ MipsTargetMachine(const Target &T, StringRef TT,
     DL(computeDataLayout(Subtarget)),
     InstrInfo(MipsInstrInfo::create(*this)),
     FrameLowering(MipsFrameLowering::create(*this, Subtarget)),
-    TLInfo(MipsTargetLowering::create(*this)), TSInfo(*this),
+    TLInfo(MipsTargetLowering::create(*this)), TSInfo(DL),
     InstrItins(Subtarget.getInstrItineraryData()), JITInfo() {
   initAsmInfo();
 }