mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 08:26:29 +00:00
For PR761:
Remove the setEndianess and setPointerSize methods. These are now handled via the setDataLayout method. llvm-svn: 33527
This commit is contained in:
parent
bf7f018011
commit
00a7dd7d6b
@ -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.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user