[llvm] r211810 - Have SparcSelectionDAGInfo take a DataLayout to initialize since
Eric Christopher
echristo at gmail.com
Thu Jun 26 15:33:52 PDT 2014
Author: echristo
Date: Thu Jun 26 17:33:52 2014
New Revision: 211810
URL: http://llvm.org/viewvc/llvm-project?rev=211810&view=rev
Log:
Have SparcSelectionDAGInfo take a DataLayout to initialize since
that's all it needs.
Modified:
llvm/trunk/lib/Target/Sparc/SparcSelectionDAGInfo.cpp
llvm/trunk/lib/Target/Sparc/SparcSelectionDAGInfo.h
llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp
Modified: llvm/trunk/lib/Target/Sparc/SparcSelectionDAGInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcSelectionDAGInfo.cpp?rev=211810&r1=211809&r2=211810&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcSelectionDAGInfo.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcSelectionDAGInfo.cpp Thu Jun 26 17:33:52 2014
@@ -11,13 +11,13 @@
//
//===----------------------------------------------------------------------===//
-#include "SparcTargetMachine.h"
+#include "SparcSelectionDAGInfo.h"
using namespace llvm;
#define DEBUG_TYPE "sparc-selectiondag-info"
-SparcSelectionDAGInfo::SparcSelectionDAGInfo(const SparcTargetMachine &TM)
- : TargetSelectionDAGInfo(TM.getDataLayout()) {
+SparcSelectionDAGInfo::SparcSelectionDAGInfo(const DataLayout &DL)
+ : TargetSelectionDAGInfo(&DL) {
}
SparcSelectionDAGInfo::~SparcSelectionDAGInfo() {
Modified: llvm/trunk/lib/Target/Sparc/SparcSelectionDAGInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcSelectionDAGInfo.h?rev=211810&r1=211809&r2=211810&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcSelectionDAGInfo.h (original)
+++ llvm/trunk/lib/Target/Sparc/SparcSelectionDAGInfo.h Thu Jun 26 17:33:52 2014
@@ -22,7 +22,7 @@ class SparcTargetMachine;
class SparcSelectionDAGInfo : public TargetSelectionDAGInfo {
public:
- explicit SparcSelectionDAGInfo(const SparcTargetMachine &TM);
+ explicit SparcSelectionDAGInfo(const DataLayout &DL);
~SparcSelectionDAGInfo();
};
Modified: llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp?rev=211810&r1=211809&r2=211810&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp Thu Jun 26 17:33:52 2014
@@ -61,7 +61,7 @@ SparcTargetMachine::SparcTargetMachine(c
Subtarget(TT, CPU, FS, is64bit),
DL(computeDataLayout(Subtarget)),
InstrInfo(Subtarget),
- TLInfo(*this), TSInfo(*this),
+ TLInfo(*this), TSInfo(DL),
FrameLowering(Subtarget) {
initAsmInfo();
}
More information about the llvm-commits
mailing list