mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-15 19:24:33 +00:00
Have MipsSelectionDAGInfo constructor take a DataLayout rather
than a target machine since it doesn't need anything past the DataLayout. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211863 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -16,8 +16,8 @@ using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "mips-selectiondag-info"
|
||||
|
||||
MipsSelectionDAGInfo::MipsSelectionDAGInfo(const MipsTargetMachine &TM)
|
||||
: TargetSelectionDAGInfo(TM.getDataLayout()) {}
|
||||
MipsSelectionDAGInfo::MipsSelectionDAGInfo(const DataLayout &DL)
|
||||
: TargetSelectionDAGInfo(&DL) {}
|
||||
|
||||
MipsSelectionDAGInfo::~MipsSelectionDAGInfo() {
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ class MipsTargetMachine;
|
||||
|
||||
class MipsSelectionDAGInfo : public TargetSelectionDAGInfo {
|
||||
public:
|
||||
explicit MipsSelectionDAGInfo(const MipsTargetMachine &TM);
|
||||
explicit MipsSelectionDAGInfo(const DataLayout &DL);
|
||||
~MipsSelectionDAGInfo();
|
||||
};
|
||||
|
||||
|
@@ -91,7 +91,7 @@ MipsTargetMachine(const Target &T, StringRef TT,
|
||||
DL(computeDataLayout(Subtarget)),
|
||||
InstrInfo(MipsInstrInfo::create(*this)),
|
||||
FrameLowering(MipsFrameLowering::create(*this, Subtarget)),
|
||||
TLInfo(MipsTargetLowering::create(*this)), TSInfo(*this),
|
||||
TLInfo(MipsTargetLowering::create(*this)), TSInfo(DL),
|
||||
InstrItins(Subtarget.getInstrItineraryData()), JITInfo() {
|
||||
initAsmInfo();
|
||||
}
|
||||
|
Reference in New Issue
Block a user