From 69156b4c20249e7800cc09e0eef0beb3d15ac1ad Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 6 Sep 2015 18:34:38 +0000 Subject: Import llvm 3.7.0 release (r246257). --- include/llvm/Target/TargetMachine.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/llvm/Target/TargetMachine.h') diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index 06a2b13836ed..f1e9d1718f5a 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -125,10 +125,15 @@ public: return *static_cast(getSubtargetImpl(F)); } + /// Deprecated in 3.7, will be removed in 3.8. Use createDataLayout() instead. + /// /// This method returns a pointer to the DataLayout for the target. It should /// be unchanging for every subtarget. const DataLayout *getDataLayout() const { return &DL; } + /// Create a DataLayout. + const DataLayout createDataLayout() const { return DL; } + /// \brief Reset the target options based on the function's attributes. // FIXME: Remove TargetOptions that affect per-function code generation // from TargetMachine. -- cgit v1.3