diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-26 08:07:01 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-26 08:07:01 +0000 |
commit | 0ac611a54dcd0291b6bc71302fb4e62929847d1e (patch) | |
tree | de48e99242a09fded7302f4ec330d0324bd4ab0d /include/llvm/Module.h | |
parent | 41dff5e4f77696ac1ce6467e7c3fd846e71b0b97 (diff) |
For PR761:
Remove the setEndiannes and setPointerSize methods. These are now set
through the setDataLayout method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33526 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r-- | include/llvm/Module.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h index 85fdb868ed..f5cb9f6a13 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -121,7 +121,7 @@ public: /// 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 @@ public: 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; } |