Use DataLayout from the module when easily available.
[oota-llvm.git] / include / llvm / IR / GlobalValue.h
index f0c80673be167f4cd0a993ff34493f435455465e..32108b153cd8bda4323a18655e7c2410a49a1f10 100644 (file)
@@ -300,6 +300,8 @@ public:
   inline Module *getParent() { return Parent; }
   inline const Module *getParent() const { return Parent; }
 
+  const DataLayout *getDataLayout() const;
+
   // Methods for support type inquiry through isa, cast, and dyn_cast:
   static inline bool classof(const Value *V) {
     return V->getValueID() == Value::FunctionVal ||