Formatting fixes.

llvm-svn: 180190
This commit is contained in:
Rafael Espindola 2013-04-24 15:14:22 +00:00
parent ec4e350f12
commit 137faa05a2
1 changed files with 20 additions and 31 deletions

View File

@ -627,16 +627,14 @@ error_code MachOObjectFile::getSectionNext(DataRefImpl Sec,
}
error_code
MachOObjectFile::getSectionName(DataRefImpl Sec,
StringRef &Result) const {
MachOObjectFile::getSectionName(DataRefImpl Sec, StringRef &Result) const {
ArrayRef<char> Raw = getSectionRawName(Sec);
Result = parseSegmentOrSectionName(Raw.data());
return object_error::success;
}
error_code
MachOObjectFile::getSectionAddress(DataRefImpl Sec,
uint64_t &Res) const {
MachOObjectFile::getSectionAddress(DataRefImpl Sec, uint64_t &Res) const {
if (is64Bit()) {
macho::Section64 Sect = getSection64(Sec);
Res = Sect.Address;
@ -648,8 +646,7 @@ MachOObjectFile::getSectionAddress(DataRefImpl Sec,
}
error_code
MachOObjectFile::getSectionSize(DataRefImpl Sec,
uint64_t &Res) const {
MachOObjectFile::getSectionSize(DataRefImpl Sec, uint64_t &Res) const {
if (is64Bit()) {
macho::Section64 Sect = getSection64(Sec);
Res = Sect.Size;
@ -662,8 +659,7 @@ MachOObjectFile::getSectionSize(DataRefImpl Sec,
}
error_code
MachOObjectFile::getSectionContents(DataRefImpl Sec,
StringRef &Res) const {
MachOObjectFile::getSectionContents(DataRefImpl Sec, StringRef &Res) const {
uint32_t Offset;
uint64_t Size;
@ -682,8 +678,7 @@ MachOObjectFile::getSectionContents(DataRefImpl Sec,
}
error_code
MachOObjectFile::getSectionAlignment(DataRefImpl Sec,
uint64_t &Res) const {
MachOObjectFile::getSectionAlignment(DataRefImpl Sec, uint64_t &Res) const {
uint32_t Align;
if (is64Bit()) {
macho::Section64 Sect = getSection64(Sec);
@ -704,15 +699,13 @@ MachOObjectFile::isSectionText(DataRefImpl Sec, bool &Res) const {
return object_error::success;
}
error_code MachOObjectFile::isSectionData(DataRefImpl DRI,
bool &Result) const {
error_code MachOObjectFile::isSectionData(DataRefImpl DRI, bool &Result) const {
// FIXME: Unimplemented.
Result = false;
return object_error::success;
}
error_code MachOObjectFile::isSectionBSS(DataRefImpl DRI,
bool &Result) const {
error_code MachOObjectFile::isSectionBSS(DataRefImpl DRI, bool &Result) const {
// FIXME: Unimplemented.
Result = false;
return object_error::success;
@ -754,8 +747,7 @@ error_code MachOObjectFile::isSectionReadOnlyData(DataRefImpl Sec,
}
error_code
MachOObjectFile::sectionContainsSymbol(DataRefImpl Sec,
DataRefImpl Symb,
MachOObjectFile::sectionContainsSymbol(DataRefImpl Sec, DataRefImpl Symb,
bool &Result) const {
SymbolRef::Type ST;
this->getSymbolType(Symb, ST);
@ -823,8 +815,7 @@ error_code MachOObjectFile::getRelocationNext(DataRefImpl Rel,
}
error_code
MachOObjectFile::getRelocationAddress(DataRefImpl Rel,
uint64_t &Res) const {
MachOObjectFile::getRelocationAddress(DataRefImpl Rel, uint64_t &Res) const {
uint64_t SectAddress;
DataRefImpl Sec;
Sec.d.a = Rel.d.b;
@ -850,8 +841,7 @@ error_code MachOObjectFile::getRelocationOffset(DataRefImpl Rel,
}
error_code
MachOObjectFile::getRelocationSymbol(DataRefImpl Rel,
SymbolRef &Res) const {
MachOObjectFile::getRelocationSymbol(DataRefImpl Rel, SymbolRef &Res) const {
macho::RelocationEntry RE = getRelocation(Rel);
uint32_t SymbolIdx = getPlainRelocationSymbolNum(RE);
bool isExtern = getPlainRelocationExternal(RE);
@ -1148,8 +1138,7 @@ MachOObjectFile::getRelocationValueString(DataRefImpl Rel,
}
error_code
MachOObjectFile::getRelocationHidden(DataRefImpl Rel,
bool &Result) const {
MachOObjectFile::getRelocationHidden(DataRefImpl Rel, bool &Result) const {
unsigned Arch = getArch();
uint64_t Type;
getRelocationType(Rel, Type);