mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 17:00:01 +00:00
Have SparcSelectionDAGInfo take a DataLayout to initialize since
that's all it needs. llvm-svn: 211810
This commit is contained in:
parent
de87d01330
commit
0092b3a0e7
@ -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() {
|
||||
|
@ -22,7 +22,7 @@ class SparcTargetMachine;
|
||||
|
||||
class SparcSelectionDAGInfo : public TargetSelectionDAGInfo {
|
||||
public:
|
||||
explicit SparcSelectionDAGInfo(const SparcTargetMachine &TM);
|
||||
explicit SparcSelectionDAGInfo(const DataLayout &DL);
|
||||
~SparcSelectionDAGInfo();
|
||||
};
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user