diff options
author | Eric Christopher <echristo@gmail.com> | 2014-06-10 18:06:28 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-06-10 18:06:28 +0000 |
commit | b8dca33a0540143f016ad14eea13766c59338fe8 (patch) | |
tree | ed5eb76b21b4695b3e99de6d0114e65e6aa2c4fb /lib/Target/AArch64 | |
parent | e3a06bcd8a66117538410c08c1ada39a6d335c65 (diff) | |
download | llvm-b8dca33a0540143f016ad14eea13766c59338fe8.tar.gz llvm-b8dca33a0540143f016ad14eea13766c59338fe8.tar.bz2 llvm-b8dca33a0540143f016ad14eea13766c59338fe8.tar.xz |
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
Diffstat (limited to 'lib/Target/AArch64')
-rw-r--r-- | lib/Target/AArch64/AArch64SelectionDAGInfo.cpp | 4 | ||||
-rw-r--r-- | lib/Target/AArch64/AArch64SelectionDAGInfo.h | 2 | ||||
-rw-r--r-- | lib/Target/AArch64/AArch64TargetMachine.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/AArch64/AArch64SelectionDAGInfo.cpp b/lib/Target/AArch64/AArch64SelectionDAGInfo.cpp index a62c721c7e..19c9e6451f 100644 --- a/lib/Target/AArch64/AArch64SelectionDAGInfo.cpp +++ b/lib/Target/AArch64/AArch64SelectionDAGInfo.cpp @@ -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() {} diff --git a/lib/Target/AArch64/AArch64SelectionDAGInfo.h b/lib/Target/AArch64/AArch64SelectionDAGInfo.h index c2e0c60dff..1180eea6f4 100644 --- a/lib/Target/AArch64/AArch64SelectionDAGInfo.h +++ b/lib/Target/AArch64/AArch64SelectionDAGInfo.h @@ -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, diff --git a/lib/Target/AArch64/AArch64TargetMachine.cpp b/lib/Target/AArch64/AArch64TargetMachine.cpp index f86f86b7f2..c10098d183 100644 --- a/lib/Target/AArch64/AArch64TargetMachine.cpp +++ b/lib/Target/AArch64/AArch64TargetMachine.cpp @@ -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(); } |