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 | 1743debcf2b08781d08a7f1ab7f1651e4eef52a3 (patch) | |
| tree | b706de781a3f09ebcf7ac5ca4b3aca6a05e2353b /llvm | |
| parent | 8d6d4b8e3696a2d492c399e6df0ba7432ce871df (diff) | |
| download | bcm5719-llvm-1743debcf2b08781d08a7f1ab7f1651e4eef52a3.tar.gz bcm5719-llvm-1743debcf2b08781d08a7f1ab7f1651e4eef52a3.zip  | |
For PR761:
Remove the setEndiannes and setPointerSize methods. These are now set
through the setDataLayout method.
llvm-svn: 33526
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Module.h | 10 | 
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/include/llvm/Module.h b/llvm/include/llvm/Module.h index 85fdb868edb..f5cb9f6a136 100644 --- a/llvm/include/llvm/Module.h +++ b/llvm/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; }  | 

