X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FTarget%2FR600%2FAMDGPUTargetMachine.h;h=8fc66b1fcd2420a56b9066ef3e871d5ab2fbf6e1;hp=a69153693158ed6d9e8a909763e374630bbed3b5;hb=ceb915026871b0d1e78267030702789df1d2fac5;hpb=d24c2c8cdf5a6bad2920092584555ea1a3f4b003 diff --git a/lib/Target/R600/AMDGPUTargetMachine.h b/lib/Target/R600/AMDGPUTargetMachine.h index a6915369315..8fc66b1fcd2 100644 --- a/lib/Target/R600/AMDGPUTargetMachine.h +++ b/lib/Target/R600/AMDGPUTargetMachine.h @@ -30,7 +30,6 @@ namespace llvm { class AMDGPUTargetMachine : public LLVMTargetMachine { private: - const DataLayout DL; protected: TargetLoweringObjectFile *TLOF; @@ -42,11 +41,7 @@ public: StringRef CPU, TargetOptions Options, Reloc::Model RM, CodeModel::Model CM, CodeGenOpt::Level OL); ~AMDGPUTargetMachine(); - // FIXME: This is currently broken, the DataLayout needs to move to - // the target machine. - const DataLayout *getDataLayout() const override { - return &DL; - } + const AMDGPUSubtarget *getSubtargetImpl() const override { return &Subtarget; }