forked from OSchip/llvm-project
Have HexagonSelectionDAGInfo take a DataLayout rather than a
target machine since that's all it needs. llvm-svn: 211822
This commit is contained in:
parent
dbe1cb0d59
commit
4496eb0b09
|
@ -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() {
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue