[llvm] r211863 - Have MipsSelectionDAGInfo constructor take a DataLayout rather

Eric Christopher echristo at gmail.com
Thu Jun 26 21:38:30 PDT 2014


Author: echristo
Date: Thu Jun 26 23:38:30 2014
New Revision: 211863

URL: http://llvm.org/viewvc/llvm-project?rev=211863&view=rev
Log:
Have MipsSelectionDAGInfo constructor take a DataLayout rather
than a target machine since it doesn't need anything past the
DataLayout.

Modified:
    llvm/trunk/lib/Target/Mips/MipsSelectionDAGInfo.cpp
    llvm/trunk/lib/Target/Mips/MipsSelectionDAGInfo.h
    llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp

Modified: llvm/trunk/lib/Target/Mips/MipsSelectionDAGInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsSelectionDAGInfo.cpp?rev=211863&r1=211862&r2=211863&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsSelectionDAGInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsSelectionDAGInfo.cpp Thu Jun 26 23:38:30 2014
@@ -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() {
 }

Modified: llvm/trunk/lib/Target/Mips/MipsSelectionDAGInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsSelectionDAGInfo.h?rev=211863&r1=211862&r2=211863&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsSelectionDAGInfo.h (original)
+++ llvm/trunk/lib/Target/Mips/MipsSelectionDAGInfo.h Thu Jun 26 23:38:30 2014
@@ -22,7 +22,7 @@ class MipsTargetMachine;
 
 class MipsSelectionDAGInfo : public TargetSelectionDAGInfo {
 public:
-  explicit MipsSelectionDAGInfo(const MipsTargetMachine &TM);
+  explicit MipsSelectionDAGInfo(const DataLayout &DL);
   ~MipsSelectionDAGInfo();
 };
 

Modified: llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp?rev=211863&r1=211862&r2=211863&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp Thu Jun 26 23:38:30 2014
@@ -91,7 +91,7 @@ MipsTargetMachine(const Target &T, Strin
     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();
 }





More information about the llvm-commits mailing list