mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-24 13:15:36 +00:00
Make PPCSelectionDAGInfo take a DataLayout instead of a TargetMachine
since that's all it needs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210853 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a7159144c2
commit
8c5dc520ef
@ -16,9 +16,7 @@ using namespace llvm;
|
||||
|
||||
#define DEBUG_TYPE "powerpc-selectiondag-info"
|
||||
|
||||
PPCSelectionDAGInfo::PPCSelectionDAGInfo(const PPCTargetMachine &TM)
|
||||
: TargetSelectionDAGInfo(TM.getDataLayout()) {
|
||||
}
|
||||
PPCSelectionDAGInfo::PPCSelectionDAGInfo(const DataLayout *DL)
|
||||
: TargetSelectionDAGInfo(DL) {}
|
||||
|
||||
PPCSelectionDAGInfo::~PPCSelectionDAGInfo() {
|
||||
}
|
||||
PPCSelectionDAGInfo::~PPCSelectionDAGInfo() {}
|
||||
|
@ -22,7 +22,7 @@ class PPCTargetMachine;
|
||||
|
||||
class PPCSelectionDAGInfo : public TargetSelectionDAGInfo {
|
||||
public:
|
||||
explicit PPCSelectionDAGInfo(const PPCTargetMachine &TM);
|
||||
explicit PPCSelectionDAGInfo(const DataLayout *DL);
|
||||
~PPCSelectionDAGInfo();
|
||||
};
|
||||
|
||||
|
@ -42,7 +42,8 @@ PPCTargetMachine::PPCTargetMachine(const Target &T, StringRef TT, StringRef CPU,
|
||||
Reloc::Model RM, CodeModel::Model CM,
|
||||
CodeGenOpt::Level OL, bool is64Bit)
|
||||
: LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
|
||||
Subtarget(TT, CPU, FS, *this, is64Bit, OL), TSInfo(*this) {
|
||||
Subtarget(TT, CPU, FS, *this, is64Bit, OL),
|
||||
TSInfo(Subtarget.getDataLayout()) {
|
||||
initAsmInfo();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user