projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move DataLayout back to the TargetMachine from TargetSubtargetInfo
[oota-llvm.git]
/
include
/
llvm
/
Target
/
TargetMachine.h
diff --git
a/include/llvm/Target/TargetMachine.h
b/include/llvm/Target/TargetMachine.h
index a4f95c06128313d7a885715240087c9922b62a2e..2d69493a0dd2c6673cfd338186337dacf132cf33 100644
(file)
--- a/
include/llvm/Target/TargetMachine.h
+++ b/
include/llvm/Target/TargetMachine.h
@@
-117,6
+117,12
@@
public:
return *static_cast<const STC*>(getSubtargetImpl());
}
return *static_cast<const STC*>(getSubtargetImpl());
}
+ /// getDataLayout - This method returns a pointer to the DataLayout for
+ /// the target. It should be unchanging for every subtarget.
+ virtual const DataLayout *getDataLayout() const {
+ return nullptr;
+ }
+
/// \brief Reset the target options based on the function's attributes.
// FIXME: Remove TargetOptions that affect per-function code generation
// from TargetMachine.
/// \brief Reset the target options based on the function's attributes.
// FIXME: Remove TargetOptions that affect per-function code generation
// from TargetMachine.