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.

llvm-svn: 211863

llvm/lib/Target/Mips/MipsSelectionDAGInfo.cpp
llvm/lib/Target/Mips/MipsSelectionDAGInfo.h
llvm/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();
 }