Have HexagonSelectionDAGInfo take a DataLayout rather than a

target machine since that's all it needs.

llvm-svn: 211822
This commit is contained in:
Eric Christopher 2014-06-27 00:18:25 +00:00
parent dbe1cb0d59
commit 4496eb0b09
3 changed files with 4 additions and 6 deletions

View File

@ -18,8 +18,8 @@ using namespace llvm;
bool llvm::flag_aligned_memcpy;
HexagonSelectionDAGInfo::HexagonSelectionDAGInfo(const HexagonTargetMachine &TM)
: TargetSelectionDAGInfo(TM.getDataLayout()) {}
HexagonSelectionDAGInfo::HexagonSelectionDAGInfo(const DataLayout &DL)
: TargetSelectionDAGInfo(&DL) {}
HexagonSelectionDAGInfo::~HexagonSelectionDAGInfo() {
}

View File

@ -18,11 +18,9 @@
namespace llvm {
class HexagonTargetMachine;
class HexagonSelectionDAGInfo : public TargetSelectionDAGInfo {
public:
explicit HexagonSelectionDAGInfo(const HexagonTargetMachine &TM);
explicit HexagonSelectionDAGInfo(const DataLayout &DL);
~HexagonSelectionDAGInfo();
SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, SDLoc dl,

View File

@ -71,7 +71,7 @@ HexagonTargetMachine::HexagonTargetMachine(const Target &T, StringRef TT,
CodeGenOpt::Level OL)
: LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
DL("e-m:e-p:32:32-i1:32-i64:64-a:0-n32"), Subtarget(TT, CPU, FS),
InstrInfo(Subtarget), TLInfo(*this), TSInfo(*this),
InstrInfo(Subtarget), TLInfo(*this), TSInfo(DL),
FrameLowering() {
initAsmInfo();
}