projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the DataLayout to the generic TargetMachine, making it mandatory.
[oota-llvm.git]
/
lib
/
Target
/
R600
/
AMDGPUTargetMachine.h
diff --git
a/lib/Target/R600/AMDGPUTargetMachine.h
b/lib/Target/R600/AMDGPUTargetMachine.h
index a69153693158ed6d9e8a909763e374630bbed3b5..8fc66b1fcd2420a56b9066ef3e871d5ab2fbf6e1 100644
(file)
--- a/
lib/Target/R600/AMDGPUTargetMachine.h
+++ b/
lib/Target/R600/AMDGPUTargetMachine.h
@@
-30,7
+30,6
@@
namespace llvm {
class AMDGPUTargetMachine : public LLVMTargetMachine {
private:
class AMDGPUTargetMachine : public LLVMTargetMachine {
private:
- const DataLayout DL;
protected:
TargetLoweringObjectFile *TLOF;
protected:
TargetLoweringObjectFile *TLOF;
@@
-42,11
+41,7
@@
public:
StringRef CPU, TargetOptions Options, Reloc::Model RM,
CodeModel::Model CM, CodeGenOpt::Level OL);
~AMDGPUTargetMachine();
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;
}
const AMDGPUSubtarget *getSubtargetImpl() const override {
return &Subtarget;
}