Changes in directory llvm/include/llvm:
Module.h updated: 1.73 -> 1.74 --- Log message: Add support for the new "target data" information in .ll files. This provides a better encoding of the targets data layout, rather than trying to guess it from the endianness and pointersize like before. --- Diffs of the changes: (+8 -0) Module.h | 8 ++++++++ 1 files changed, 8 insertions(+) Index: llvm/include/llvm/Module.h diff -u llvm/include/llvm/Module.h:1.73 llvm/include/llvm/Module.h:1.74 --- llvm/include/llvm/Module.h:1.73 Wed May 31 11:40:28 2006 +++ llvm/include/llvm/Module.h Tue Oct 17 21:21:12 2006 @@ -116,6 +116,11 @@ /// @returns the module identifier as a string const std::string &getModuleIdentifier() const { return ModuleID; } + /// 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; } + /// Get the target triple which is a string describing the target host. /// @returns a string containing the target triple. const std::string &getTargetTriple() const { return TargetTriple; } @@ -139,6 +144,9 @@ /// Set the module identifier. void setModuleIdentifier(const std::string &ID) { ModuleID = ID; } + /// Set the data layout + void setDataLayout(std::string DL) { DataLayout = DL; } + /// Set the target triple. void setTargetTriple(const std::string &T) { TargetTriple = T; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits