Have SparcSelectionDAGInfo take a DataLayout to initialize since
authorEric Christopher <echristo@gmail.com>
Thu, 26 Jun 2014 22:33:52 +0000 (22:33 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 26 Jun 2014 22:33:52 +0000 (22:33 +0000)
that's all it needs.

llvm-svn: 211810

llvm/lib/Target/Sparc/SparcSelectionDAGInfo.cpp
llvm/lib/Target/Sparc/SparcSelectionDAGInfo.h
llvm/lib/Target/Sparc/SparcTargetMachine.cpp

index c2b897c..a308fc5 100644 (file)
 //
 //===----------------------------------------------------------------------===//
 
-#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() {
index dcd4203..2346f41 100644 (file)
@@ -22,7 +22,7 @@ class SparcTargetMachine;
 
 class SparcSelectionDAGInfo : public TargetSelectionDAGInfo {
 public:
-  explicit SparcSelectionDAGInfo(const SparcTargetMachine &TM);
+  explicit SparcSelectionDAGInfo(const DataLayout &DL);
   ~SparcSelectionDAGInfo();
 };
 
index 2469d93..8660136 100644 (file)
@@ -61,7 +61,7 @@ SparcTargetMachine::SparcTargetMachine(const Target &T, StringRef TT,
     Subtarget(TT, CPU, FS, is64bit),
     DL(computeDataLayout(Subtarget)),
     InstrInfo(Subtarget),
-    TLInfo(*this), TSInfo(*this),
+    TLInfo(*this), TSInfo(DL),
     FrameLowering(Subtarget) {
   initAsmInfo();
 }