Have AArch64SelectionDAGInfo take a DataLayout parameter rather

than a TargetMachine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210554 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2014-06-10 18:06:28 +00:00
parent e3a06bcd8a
commit b8dca33a05
3 changed files with 4 additions and 4 deletions

View File

@ -16,8 +16,8 @@ using namespace llvm;
#define DEBUG_TYPE "aarch64-selectiondag-info"
AArch64SelectionDAGInfo::AArch64SelectionDAGInfo(const TargetMachine &TM)
: TargetSelectionDAGInfo(TM.getDataLayout()) {}
AArch64SelectionDAGInfo::AArch64SelectionDAGInfo(const DataLayout *DL)
: TargetSelectionDAGInfo(DL) {}
AArch64SelectionDAGInfo::~AArch64SelectionDAGInfo() {}

View File

@ -20,7 +20,7 @@ namespace llvm {
class AArch64SelectionDAGInfo : public TargetSelectionDAGInfo {
public:
explicit AArch64SelectionDAGInfo(const TargetMachine &TM);
explicit AArch64SelectionDAGInfo(const DataLayout *DL);
~AArch64SelectionDAGInfo();
SDValue EmitTargetCodeForMemset(SelectionDAG &DAG, SDLoc dl, SDValue Chain,

View File

@ -78,7 +78,7 @@ AArch64TargetMachine::AArch64TargetMachine(const Target &T, StringRef TT,
bool LittleEndian)
: LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
Subtarget(TT, CPU, FS, LittleEndian),
InstrInfo(Subtarget), TLInfo(*this), TSInfo(*this) {
InstrInfo(Subtarget), TLInfo(*this), TSInfo(getDataLayout()) {
initAsmInfo();
}