Redirect DataLayout from TargetMachine to Module in MachineFunction
[oota-llvm.git] / include / llvm / CodeGen / MachineFunction.h
index 94610cabf566d761428bc082fa7c0d906a7f11d9..c15ee1c006cda12c73aa59bb221c44769084a2c4 100644 (file)
@@ -155,6 +155,9 @@ public:
   MachineModuleInfo &getMMI() const { return MMI; }
   MCContext &getContext() const { return Ctx; }
 
+  /// Return the DataLayout attached to the Module associated to this MF.
+  const DataLayout &getDataLayout() const;
+
   /// getFunction - Return the LLVM function that this machine code represents
   ///
   const Function *getFunction() const { return Fn; }