diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-26 08:07:57 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-26 08:07:57 +0000 |
commit | 93b2d78121ed29d2f196d5e0dd0f32c77a619f7d (patch) | |
tree | 66cb135418c85b5cc06cdb2a7d85df1ff38833f3 /llvm/lib/VMCore/Module.cpp | |
parent | 1743debcf2b08781d08a7f1ab7f1651e4eef52a3 (diff) | |
download | bcm5719-llvm-93b2d78121ed29d2f196d5e0dd0f32c77a619f7d.tar.gz bcm5719-llvm-93b2d78121ed29d2f196d5e0dd0f32c77a619f7d.zip |
For PR761:
Remove the setEndianess and setPointerSize methods. These are now
handled via the setDataLayout method.
llvm-svn: 33527
Diffstat (limited to 'llvm/lib/VMCore/Module.cpp')
-rw-r--r-- | llvm/lib/VMCore/Module.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/lib/VMCore/Module.cpp b/llvm/lib/VMCore/Module.cpp index 30935dd4ce6..45f752218e9 100644 --- a/llvm/lib/VMCore/Module.cpp +++ b/llvm/lib/VMCore/Module.cpp @@ -107,16 +107,6 @@ Module::Endianness Module::getEndianness() const { return ret; } -void Module::setEndianness(Endianness E) { - if (!DataLayout.empty() && E != AnyEndianness) - DataLayout += "-"; - - if (E == LittleEndian) - DataLayout += "e"; - else if (E == BigEndian) - DataLayout += "E"; -} - /// Target Pointer Size information... Module::PointerSize Module::getPointerSize() const { std::string temp = DataLayout; @@ -138,16 +128,6 @@ Module::PointerSize Module::getPointerSize() const { return ret; } -void Module::setPointerSize(PointerSize PS) { - if (!DataLayout.empty() && PS != AnyPointerSize) - DataLayout += "-"; - - if (PS == Pointer32) - DataLayout += "p:32:32"; - else if (PS == Pointer64) - DataLayout += "p:64:64"; -} - //===----------------------------------------------------------------------===// // Methods for easy access to the functions in the module. // |