For PR761:
authorReid Spencer <rspencer@reidspencer.com>
Fri, 26 Jan 2007 08:07:57 +0000 (08:07 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 26 Jan 2007 08:07:57 +0000 (08:07 +0000)
Remove the setEndianess and setPointerSize methods. These are now
handled via the setDataLayout method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33527 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Module.cpp

index 30935dd4ce6d7a2cebb6f2cd4e4bf23cae2c1d14..45f752218e94118044e9a0b520cdb89c70a7a005 100644 (file)
@@ -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.
 //