mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
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:
parent
d66d1a66c4
commit
9e50640808
@ -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…
Reference in New Issue
Block a user