80-column tidying. Formatting choices by clang-format.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186885 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2013-07-22 22:25:07 +00:00
parent 62657090de
commit 60d659172c

View File

@ -1384,30 +1384,32 @@ MachOObjectFile::isRelocationScattered(const macho::RelocationEntry &RE)
return getPlainRelocationAddress(RE) & macho::RF_Scattered; return getPlainRelocationAddress(RE) & macho::RF_Scattered;
} }
unsigned MachOObjectFile::getPlainRelocationSymbolNum(const macho::RelocationEntry &RE) const { unsigned MachOObjectFile::getPlainRelocationSymbolNum(
const macho::RelocationEntry &RE) const {
if (isLittleEndian()) if (isLittleEndian())
return RE.Word1 & 0xffffff; return RE.Word1 & 0xffffff;
return RE.Word1 >> 8; return RE.Word1 >> 8;
} }
bool MachOObjectFile::getPlainRelocationExternal(const macho::RelocationEntry &RE) const { bool MachOObjectFile::getPlainRelocationExternal(
const macho::RelocationEntry &RE) const {
if (isLittleEndian()) if (isLittleEndian())
return (RE.Word1 >> 27) & 1; return (RE.Word1 >> 27) & 1;
return (RE.Word1 >> 4) & 1; return (RE.Word1 >> 4) & 1;
} }
bool bool MachOObjectFile::getScatteredRelocationScattered(
MachOObjectFile::getScatteredRelocationScattered(const macho::RelocationEntry &RE) const { const macho::RelocationEntry &RE) const {
return RE.Word0 >> 31; return RE.Word0 >> 31;
} }
uint32_t uint32_t MachOObjectFile::getScatteredRelocationValue(
MachOObjectFile::getScatteredRelocationValue(const macho::RelocationEntry &RE) const { const macho::RelocationEntry &RE) const {
return RE.Word1; return RE.Word1;
} }
unsigned unsigned MachOObjectFile::getAnyRelocationAddress(
MachOObjectFile::getAnyRelocationAddress(const macho::RelocationEntry &RE) const { const macho::RelocationEntry &RE) const {
if (isRelocationScattered(RE)) if (isRelocationScattered(RE))
return getScatteredRelocationAddress(RE); return getScatteredRelocationAddress(RE);
return getPlainRelocationAddress(RE); return getPlainRelocationAddress(RE);
@ -1420,8 +1422,8 @@ MachOObjectFile::getAnyRelocationPCRel(const macho::RelocationEntry &RE) const {
return getPlainRelocationPCRel(this, RE); return getPlainRelocationPCRel(this, RE);
} }
unsigned unsigned MachOObjectFile::getAnyRelocationLength(
MachOObjectFile::getAnyRelocationLength(const macho::RelocationEntry &RE) const { const macho::RelocationEntry &RE) const {
if (isRelocationScattered(RE)) if (isRelocationScattered(RE))
return getScatteredRelocationLength(RE); return getScatteredRelocationLength(RE);
return getPlainRelocationLength(this, RE); return getPlainRelocationLength(this, RE);
@ -1494,8 +1496,8 @@ MachOObjectFile::getSymbol64TableEntry(DataRefImpl DRI) const {
return getStruct<macho::Symbol64TableEntry>(this, P); return getStruct<macho::Symbol64TableEntry>(this, P);
} }
macho::LinkeditDataLoadCommand macho::LinkeditDataLoadCommand MachOObjectFile::getLinkeditDataLoadCommand(
MachOObjectFile::getLinkeditDataLoadCommand(const MachOObjectFile::LoadCommandInfo &L) const { const MachOObjectFile::LoadCommandInfo &L) const {
return getStruct<macho::LinkeditDataLoadCommand>(this, L.Ptr); return getStruct<macho::LinkeditDataLoadCommand>(this, L.Ptr);
} }