Have AArch64SelectionDAGInfo take a DataLayout parameter rather
authorEric Christopher <echristo@gmail.com>
Tue, 10 Jun 2014 18:06:28 +0000 (18:06 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 10 Jun 2014 18:06:28 +0000 (18:06 +0000)
than a TargetMachine.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210554 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64SelectionDAGInfo.cpp
lib/Target/AArch64/AArch64SelectionDAGInfo.h
lib/Target/AArch64/AArch64TargetMachine.cpp

index a62c721c7e1c973fc8e7d85ba6c588d2643c87a3..19c9e6451fe176c532b652a469bc055e32fd39e4 100644 (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() {}
 
index c2e0c60dff010aa1df35430c7d8b058f34d56f38..1180eea6f4c145720ba72048f26fefa8d580b7b7 100644 (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,
index f86f86b7f241bcb9067f1e110c0200eb59483c31..c10098d1837c5c0245707783d28de8661ef86993 100644 (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();
 }