[llvm] r211826 - Have MSP430SelectionDAGInfo constructor take a DataLayout rather
Eric Christopher
echristo at gmail.com
Thu Jun 26 17:37:57 PDT 2014
Author: echristo
Date: Thu Jun 26 19:37:57 2014
New Revision: 211826
URL: http://llvm.org/viewvc/llvm-project?rev=211826&view=rev
Log:
Have MSP430SelectionDAGInfo constructor take a DataLayout rather
than a target machine since it doesn't need anything past the
DataLayout.
Modified:
llvm/trunk/lib/Target/MSP430/MSP430SelectionDAGInfo.cpp
llvm/trunk/lib/Target/MSP430/MSP430SelectionDAGInfo.h
llvm/trunk/lib/Target/MSP430/MSP430TargetMachine.cpp
Modified: llvm/trunk/lib/Target/MSP430/MSP430SelectionDAGInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430SelectionDAGInfo.cpp?rev=211826&r1=211825&r2=211826&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430SelectionDAGInfo.cpp (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430SelectionDAGInfo.cpp Thu Jun 26 19:37:57 2014
@@ -16,8 +16,8 @@ using namespace llvm;
#define DEBUG_TYPE "msp430-selectiondag-info"
-MSP430SelectionDAGInfo::MSP430SelectionDAGInfo(const MSP430TargetMachine &TM)
- : TargetSelectionDAGInfo(TM.getDataLayout()) {}
+MSP430SelectionDAGInfo::MSP430SelectionDAGInfo(const DataLayout &DL)
+ : TargetSelectionDAGInfo(&DL) {}
MSP430SelectionDAGInfo::~MSP430SelectionDAGInfo() {
}
Modified: llvm/trunk/lib/Target/MSP430/MSP430SelectionDAGInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430SelectionDAGInfo.h?rev=211826&r1=211825&r2=211826&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430SelectionDAGInfo.h (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430SelectionDAGInfo.h Thu Jun 26 19:37:57 2014
@@ -22,7 +22,7 @@ class MSP430TargetMachine;
class MSP430SelectionDAGInfo : public TargetSelectionDAGInfo {
public:
- explicit MSP430SelectionDAGInfo(const MSP430TargetMachine &TM);
+ explicit MSP430SelectionDAGInfo(const DataLayout &DL);
~MSP430SelectionDAGInfo();
};
Modified: llvm/trunk/lib/Target/MSP430/MSP430TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430TargetMachine.cpp?rev=211826&r1=211825&r2=211826&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430TargetMachine.cpp Thu Jun 26 19:37:57 2014
@@ -35,7 +35,7 @@ MSP430TargetMachine::MSP430TargetMachine
Subtarget(TT, CPU, FS),
// FIXME: Check DataLayout string.
DL("e-m:e-p:16:16-i32:16:32-n8:16"),
- InstrInfo(*this), TLInfo(*this), TSInfo(*this),
+ InstrInfo(*this), TLInfo(*this), TSInfo(DL),
FrameLowering(Subtarget) {
initAsmInfo();
}
More information about the llvm-commits
mailing list