DataLayout is mandatory, update the API to reflect it with references.
[oota-llvm.git] / include / llvm / Target / TargetLowering.h
index 85b6e954dcd42dfdc9881d3c9dbb54d2538d2355..a74022f88351210576143d125acffe696b5e511f 100644 (file)
@@ -160,7 +160,7 @@ protected:
 
 public:
   const TargetMachine &getTargetMachine() const { return TM; }
-  const DataLayout *getDataLayout() const { return DL; }
+  const DataLayout *getDataLayout() const { return TM.getDataLayout(); }
 
   bool isBigEndian() const { return !IsLittleEndian; }
   bool isLittleEndian() const { return IsLittleEndian; }
@@ -1639,7 +1639,6 @@ public:
 
 private:
   const TargetMachine &TM;
-  const DataLayout *DL;
 
   /// True if this is a little endian target.
   bool IsLittleEndian;