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 | 078a2b62ab9b68ee1cb0b8fd7b216376c694516d (patch) | |
| tree | 988e7b209fb9512f0dfe709910e92e230ad33b29 | |
| parent | 57c2319bb30b7c6bdcca77a784d148b2430b4660 (diff) | |
| download | bcm5719-llvm-078a2b62ab9b68ee1cb0b8fd7b216376c694516d.tar.gz bcm5719-llvm-078a2b62ab9b68ee1cb0b8fd7b216376c694516d.zip | |
Have AArch64SelectionDAGInfo take a DataLayout parameter rather
than a TargetMachine.
llvm-svn: 210554
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64SelectionDAGInfo.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64SelectionDAGInfo.h | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64TargetMachine.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64SelectionDAGInfo.cpp b/llvm/lib/Target/AArch64/AArch64SelectionDAGInfo.cpp index a62c721c7e1..19c9e6451fe 100644 --- a/llvm/lib/Target/AArch64/AArch64SelectionDAGInfo.cpp +++ b/llvm/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/llvm/lib/Target/AArch64/AArch64SelectionDAGInfo.h b/llvm/lib/Target/AArch64/AArch64SelectionDAGInfo.h index c2e0c60dff0..1180eea6f4c 100644 --- a/llvm/lib/Target/AArch64/AArch64SelectionDAGInfo.h +++ b/llvm/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/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp index f86f86b7f24..c10098d1837 100644 --- a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp +++ b/llvm/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(); } |

