[llvm-commits] CVS: llvm/include/llvm/Module.h

Owen Anderson resistor at mac.com
Wed May 17 19:10:44 PDT 2006



Changes in directory llvm/include/llvm:

Module.h updated: 1.71 -> 1.72
---
Log message:

Change Module to use TargetData-compatible strings internally.

This is part of the on-going work on PR 761: http://llvm.cs.uiuc.edu/PR761 .


---
Diffs of the changes:  (+5 -6)

 Module.h |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)


Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.71 llvm/include/llvm/Module.h:1.72
--- llvm/include/llvm/Module.h:1.71	Tue May 16 01:27:31 2006
+++ llvm/include/llvm/Module.h	Wed May 17 21:10:31 2006
@@ -94,8 +94,7 @@
   SymbolTable *SymTab;           ///< Symbol Table for the module
   std::string ModuleID;          ///< Human readable identifier for the module
   std::string TargetTriple;      ///< Platform target triple Module compiled on
-  Endianness  Endian;            ///< Endianness assumed in the module
-  PointerSize PtrSize;           ///< Pointer size assumed in the module
+  std::string DataLayout;        ///< Target data description
 
   friend class Constant;
 
@@ -123,11 +122,11 @@
 
   /// Get the target endian information.
   /// @returns Endianess - an enumeration for the endianess of the target
-  Endianness getEndianness() const { return Endian; }
+  Endianness getEndianness() const;
 
   /// Get the target pointer size.
   /// @returns PointerSize - an enumeration for the size of the target's pointer
-  PointerSize getPointerSize() const { return PtrSize; }
+  PointerSize getPointerSize() const;
 
   /// Get any module-scope inline assembly blocks.
   /// @returns a string containing the module-scope inline assembly blocks.
@@ -144,10 +143,10 @@
   void setTargetTriple(const std::string &T) { TargetTriple = T; }
 
   /// Set the target endian information.
-  void setEndianness(Endianness E) { Endian = E; }
+  void setEndianness(Endianness E);
 
   /// Set the target pointer size.
-  void setPointerSize(PointerSize PS) { PtrSize = PS; }
+  void setPointerSize(PointerSize PS);
 
   /// Set the module-scope inline assembly blocks.
   void setModuleInlineAsm(const std::string &Asm) { GlobalScopeAsm = Asm; }






More information about the llvm-commits mailing list