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. // _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits