mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Re-remove dead code.
This reverts r198854. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198879 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -60,51 +60,6 @@ Module::~Module() {
|
||||
delete static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab);
|
||||
}
|
||||
|
||||
/// Target endian information.
|
||||
Module::Endianness Module::getEndianness() const {
|
||||
StringRef temp = DataLayout;
|
||||
Module::Endianness ret = BigEndian;
|
||||
|
||||
while (!temp.empty()) {
|
||||
std::pair<StringRef, StringRef> P = getToken(temp, "-");
|
||||
|
||||
StringRef token = P.first;
|
||||
temp = P.second;
|
||||
|
||||
if (token[0] == 'e') {
|
||||
ret = LittleEndian;
|
||||
} else if (token[0] == 'E') {
|
||||
ret = BigEndian;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/// Target Pointer Size information.
|
||||
Module::PointerSize Module::getPointerSize() const {
|
||||
StringRef temp = DataLayout;
|
||||
Module::PointerSize ret = Pointer64;
|
||||
|
||||
while (!temp.empty()) {
|
||||
std::pair<StringRef, StringRef> TmpP = getToken(temp, "-");
|
||||
temp = TmpP.second;
|
||||
TmpP = getToken(TmpP.first, ":");
|
||||
StringRef token = TmpP.second, signalToken = TmpP.first;
|
||||
|
||||
if (signalToken[0] == 'p') {
|
||||
int size = 0;
|
||||
getToken(token, ":").first.getAsInteger(10, size);
|
||||
if (size == 32)
|
||||
ret = Pointer32;
|
||||
else if (size == 64)
|
||||
ret = Pointer64;
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/// getNamedValue - Return the first global value in the module with
|
||||
/// the specified name, of arbitrary type. This method returns null
|
||||
/// if a global with the specified name is not found.
|
||||
|
Reference in New Issue
Block a user