aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Object
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-07-22 22:25:07 +0000
committerEric Christopher <echristo@gmail.com>2013-07-22 22:25:07 +0000
commit60d659172cb7a85ea67c5d94c9f465c98c4e4786 (patch)
treeda82d5516eee865d56e94faeb9de67cc7a1cf07f /lib/Object
parent62657090de3a5731bf644437701ccd78c247119f (diff)
downloadexternal_llvm-60d659172cb7a85ea67c5d94c9f465c98c4e4786.zip
external_llvm-60d659172cb7a85ea67c5d94c9f465c98c4e4786.tar.gz
external_llvm-60d659172cb7a85ea67c5d94c9f465c98c4e4786.tar.bz2
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
Diffstat (limited to 'lib/Object')
-rw-r--r--lib/Object/MachOObjectFile.cpp30
1 files changed, 16 insertions, 14 deletions
diff --git a/lib/Object/MachOObjectFile.cpp b/lib/Object/MachOObjectFile.cpp
index 12090d6..e9caf3a 100644
--- a/lib/Object/MachOObjectFile.cpp
+++ b/lib/Object/MachOObjectFile.cpp
@@ -1284,8 +1284,8 @@ StringRef MachOObjectFile::getFileFormatName() const {
// Make sure the cpu type has the correct mask.
assert((CPUType & llvm::MachO::CPUArchABI64)
- == llvm::MachO::CPUArchABI64 &&
- "32-bit object file when we're 64-bit?");
+ == llvm::MachO::CPUArchABI64 &&
+ "32-bit object file when we're 64-bit?");
switch (CPUType) {
case llvm::MachO::CPUTypeX86_64:
@@ -1384,30 +1384,32 @@ MachOObjectFile::isRelocationScattered(const macho::RelocationEntry &RE)
return getPlainRelocationAddress(RE) & macho::RF_Scattered;
}
-unsigned MachOObjectFile::getPlainRelocationSymbolNum(const macho::RelocationEntry &RE) const {
+unsigned MachOObjectFile::getPlainRelocationSymbolNum(
+ const macho::RelocationEntry &RE) const {
if (isLittleEndian())
return RE.Word1 & 0xffffff;
return RE.Word1 >> 8;
}
-bool MachOObjectFile::getPlainRelocationExternal(const macho::RelocationEntry &RE) const {
+bool MachOObjectFile::getPlainRelocationExternal(
+ const macho::RelocationEntry &RE) const {
if (isLittleEndian())
return (RE.Word1 >> 27) & 1;
return (RE.Word1 >> 4) & 1;
}
-bool
-MachOObjectFile::getScatteredRelocationScattered(const macho::RelocationEntry &RE) const {
+bool MachOObjectFile::getScatteredRelocationScattered(
+ const macho::RelocationEntry &RE) const {
return RE.Word0 >> 31;
}
-uint32_t
-MachOObjectFile::getScatteredRelocationValue(const macho::RelocationEntry &RE) const {
+uint32_t MachOObjectFile::getScatteredRelocationValue(
+ const macho::RelocationEntry &RE) const {
return RE.Word1;
}
-unsigned
-MachOObjectFile::getAnyRelocationAddress(const macho::RelocationEntry &RE) const {
+unsigned MachOObjectFile::getAnyRelocationAddress(
+ const macho::RelocationEntry &RE) const {
if (isRelocationScattered(RE))
return getScatteredRelocationAddress(RE);
return getPlainRelocationAddress(RE);
@@ -1420,8 +1422,8 @@ MachOObjectFile::getAnyRelocationPCRel(const macho::RelocationEntry &RE) const {
return getPlainRelocationPCRel(this, RE);
}
-unsigned
-MachOObjectFile::getAnyRelocationLength(const macho::RelocationEntry &RE) const {
+unsigned MachOObjectFile::getAnyRelocationLength(
+ const macho::RelocationEntry &RE) const {
if (isRelocationScattered(RE))
return getScatteredRelocationLength(RE);
return getPlainRelocationLength(this, RE);
@@ -1494,8 +1496,8 @@ MachOObjectFile::getSymbol64TableEntry(DataRefImpl DRI) const {
return getStruct<macho::Symbol64TableEntry>(this, P);
}
-macho::LinkeditDataLoadCommand
-MachOObjectFile::getLinkeditDataLoadCommand(const MachOObjectFile::LoadCommandInfo &L) const {
+macho::LinkeditDataLoadCommand MachOObjectFile::getLinkeditDataLoadCommand(
+ const MachOObjectFile::LoadCommandInfo &L) const {
return getStruct<macho::LinkeditDataLoadCommand>(this, L.Ptr);
}