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
This commit is contained in:
Eric Christopher
2014-06-06 19:04:48 +00:00
parent 5beec3aa92
commit 5448320a20
13 changed files with 16 additions and 22 deletions

View File

@@ -17,7 +17,7 @@ using namespace llvm;
#define DEBUG_TYPE "aarch64-selectiondag-info"
AArch64SelectionDAGInfo::AArch64SelectionDAGInfo(const TargetMachine &TM)
: TargetSelectionDAGInfo(TM),
: TargetSelectionDAGInfo(TM.getDataLayout()),
Subtarget(&TM.getSubtarget<AArch64Subtarget>()) {}
AArch64SelectionDAGInfo::~AArch64SelectionDAGInfo() {}