summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-27 04:38:30 +0000
committerEric Christopher <echristo@gmail.com>2014-06-27 04:38:30 +0000
commit5432e75a2544f3987dea5fe6c4c30763c3cdcb42 (patch)
tree3e881046a0dd16f45a12b88b08b31bb3105734ea
parentdc2c47590420878d8edb49be4a4734e8f886278d (diff)
downloadbcm5719-llvm-5432e75a2544f3987dea5fe6c4c30763c3cdcb42.tar.gz
bcm5719-llvm-5432e75a2544f3987dea5fe6c4c30763c3cdcb42.zip
Have MipsSelectionDAGInfo constructor take a DataLayout rather
than a target machine since it doesn't need anything past the DataLayout. llvm-svn: 211863
-rw-r--r--llvm/lib/Target/Mips/MipsSelectionDAGInfo.cpp4
-rw-r--r--llvm/lib/Target/Mips/MipsSelectionDAGInfo.h2
-rw-r--r--llvm/lib/Target/Mips/MipsTargetMachine.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/Mips/MipsSelectionDAGInfo.cpp b/llvm/lib/Target/Mips/MipsSelectionDAGInfo.cpp
index c8e995a991d..edd8f670707 100644
--- a/llvm/lib/Target/Mips/MipsSelectionDAGInfo.cpp
+++ b/llvm/lib/Target/Mips/MipsSelectionDAGInfo.cpp
@@ -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() {
}
diff --git a/llvm/lib/Target/Mips/MipsSelectionDAGInfo.h b/llvm/lib/Target/Mips/MipsSelectionDAGInfo.h
index 6cafb558b35..2b3d527fe6f 100644
--- a/llvm/lib/Target/Mips/MipsSelectionDAGInfo.h
+++ b/llvm/lib/Target/Mips/MipsSelectionDAGInfo.h
@@ -22,7 +22,7 @@ class MipsTargetMachine;
class MipsSelectionDAGInfo : public TargetSelectionDAGInfo {
public:
- explicit MipsSelectionDAGInfo(const MipsTargetMachine &TM);
+ explicit MipsSelectionDAGInfo(const DataLayout &DL);
~MipsSelectionDAGInfo();
};
diff --git a/llvm/lib/Target/Mips/MipsTargetMachine.cpp b/llvm/lib/Target/Mips/MipsTargetMachine.cpp
index 984c58eb6c1..20d52141993 100644
--- a/llvm/lib/Target/Mips/MipsTargetMachine.cpp
+++ b/llvm/lib/Target/Mips/MipsTargetMachine.cpp
@@ -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();
}
OpenPOWER on IntegriCloud