Have SparcSelectionDAGInfo take a DataLayout to initialize since

that's all it needs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211810 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2014-06-26 22:33:52 +00:00
parent d66d1a66c4
commit 9e50640808
3 changed files with 5 additions and 5 deletions

View File

@ -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() {

View File

@ -22,7 +22,7 @@ class SparcTargetMachine;
class SparcSelectionDAGInfo : public TargetSelectionDAGInfo {
public:
explicit SparcSelectionDAGInfo(const SparcTargetMachine &TM);
explicit SparcSelectionDAGInfo(const DataLayout &DL);
~SparcSelectionDAGInfo();
};

View 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();
}