[llvm-commits] CVS: llvm/lib/VMCore/Module.cpp
Reid Spencer
reid at x10sys.com
Fri Jan 26 00:08:14 PST 2007
Changes in directory llvm/lib/VMCore:
Module.cpp updated: 1.72 -> 1.73
---
Log message:
For PR761: http://llvm.org/PR761 :
Remove the setEndianess and setPointerSize methods. These are now
handled via the setDataLayout method.
---
Diffs of the changes: (+0 -20)
Module.cpp | 20 --------------------
1 files changed, 20 deletions(-)
Index: llvm/lib/VMCore/Module.cpp
diff -u llvm/lib/VMCore/Module.cpp:1.72 llvm/lib/VMCore/Module.cpp:1.73
--- llvm/lib/VMCore/Module.cpp:1.72 Sun Jan 7 02:09:25 2007
+++ llvm/lib/VMCore/Module.cpp Fri Jan 26 02:07:57 2007
@@ -107,16 +107,6 @@
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 @@
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.
//
More information about the llvm-commits
mailing list