diff options
author | Eric Christopher <echristo@gmail.com> | 2014-06-06 19:04:48 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-06-06 19:04:48 +0000 |
commit | 5448320a2061faeadedc800dff9a9adf14005a72 (patch) | |
tree | 88733e4ee835d6f892b3ae04bd18693d7e61ae80 /lib/Target/ARM | |
parent | 5beec3aa928fa9675784e7f2f0d255792323cd19 (diff) | |
download | llvm-5448320a2061faeadedc800dff9a9adf14005a72.tar.gz llvm-5448320a2061faeadedc800dff9a9adf14005a72.tar.bz2 llvm-5448320a2061faeadedc800dff9a9adf14005a72.tar.xz |
Have TargetSelectionDAGInfo take a DataLayout initializer rather than
a TargetMachine since the only thing it wants is DataLayout.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210366 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/ARMSelectionDAGInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMSelectionDAGInfo.cpp b/lib/Target/ARM/ARMSelectionDAGInfo.cpp index 008ad640a4..1a9b4f30f4 100644 --- a/lib/Target/ARM/ARMSelectionDAGInfo.cpp +++ b/lib/Target/ARM/ARMSelectionDAGInfo.cpp @@ -19,9 +19,8 @@ using namespace llvm; #define DEBUG_TYPE "arm-selectiondag-info" ARMSelectionDAGInfo::ARMSelectionDAGInfo(const TargetMachine &TM) - : TargetSelectionDAGInfo(TM), - Subtarget(&TM.getSubtarget<ARMSubtarget>()) { -} + : TargetSelectionDAGInfo(TM.getDataLayout()), + Subtarget(&TM.getSubtarget<ARMSubtarget>()) {} ARMSelectionDAGInfo::~ARMSelectionDAGInfo() { } |