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

Reid Spencer reid at x10sys.com
Fri Jan 26 00:07:19 PST 2007



Changes in directory llvm/include/llvm:

Module.h updated: 1.79 -> 1.80
---
Log message:

For PR761: http://llvm.org/PR761 :
Remove the setEndiannes and setPointerSize methods. These are now set
through the setDataLayout method.


---
Diffs of the changes:  (+2 -8)

 Module.h |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)


Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.79 llvm/include/llvm/Module.h:1.80
--- llvm/include/llvm/Module.h:1.79	Sun Jan  7 02:09:25 2007
+++ llvm/include/llvm/Module.h	Fri Jan 26 02:07:01 2007
@@ -121,7 +121,7 @@
   /// Get the data layout string for the module's target platform.  This encodes
   /// the type sizes and alignments expected by this module.
   /// @returns the data layout as a string
-  std::string getDataLayout() const { return DataLayout; }
+  const std::string& getDataLayout() const { return DataLayout; }
 
   /// Get the target triple which is a string describing the target host.
   /// @returns a string containing the target triple.
@@ -147,17 +147,11 @@
   void setModuleIdentifier(const std::string &ID) { ModuleID = ID; }
 
   /// Set the data layout
-  void setDataLayout(std::string DL) { DataLayout = DL; }
+  void setDataLayout(const std::string& DL) { DataLayout = DL; }
 
   /// Set the target triple.
   void setTargetTriple(const std::string &T) { TargetTriple = T; }
 
-  /// Set the target endian information.
-  void setEndianness(Endianness E);
-
-  /// Set the target pointer size.
-  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