diff options
Diffstat (limited to 'include/llvm/Target/TargetMachine.h')
| -rw-r--r-- | include/llvm/Target/TargetMachine.h | 5 | 
1 files changed, 5 insertions, 0 deletions
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<const STC*>(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.  | 
