X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FTarget%2FTargetMachine.h;h=2d69493a0dd2c6673cfd338186337dacf132cf33;hb=04bcc11905d2f07de49807556fa42923dbb64b03;hp=a4f95c06128313d7a885715240087c9922b62a2e;hpb=847729d19ab67ab24d9dc39d055093d965898229;p=oota-llvm.git diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index a4f95c06128..2d69493a0dd 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -117,6 +117,12 @@ public: return *static_cast(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.