llvm.org GIT mirror llvm / f00c595
For PR761: 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 Reid Spencer 13 years ago
1 changed file(s) with 0 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
106106 return ret;
107107 }
108108
109 void Module::setEndianness(Endianness E) {
110 if (!DataLayout.empty() && E != AnyEndianness)
111 DataLayout += "-";
112
113 if (E == LittleEndian)
114 DataLayout += "e";
115 else if (E == BigEndian)
116 DataLayout += "E";
117 }
118
119109 /// Target Pointer Size information...
120110 Module::PointerSize Module::getPointerSize() const {
121111 std::string temp = DataLayout;
135125 }
136126
137127 return ret;
138 }
139
140 void Module::setPointerSize(PointerSize PS) {
141 if (!DataLayout.empty() && PS != AnyPointerSize)
142 DataLayout += "-";
143
144 if (PS == Pointer32)
145 DataLayout += "p:32:32";
146 else if (PS == Pointer64)
147 DataLayout += "p:64:64";
148128 }
149129
150130 //===----------------------------------------------------------------------===//