80-column.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199519 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rui Ueyama 2014-01-17 22:11:27 +00:00
parent 9106d365f5
commit 64382602e4

View File

@ -458,7 +458,8 @@ error_code COFFObjectFile::initExportTablePtr() {
uintptr_t IntPtr = 0; uintptr_t IntPtr = 0;
if (error_code EC = getRvaPtr(ExportTableRva, IntPtr)) if (error_code EC = getRvaPtr(ExportTableRva, IntPtr))
return EC; return EC;
ExportDirectory = reinterpret_cast<const export_directory_table_entry *>(IntPtr); ExportDirectory =
reinterpret_cast<const export_directory_table_entry *>(IntPtr);
return object_error::success; return object_error::success;
} }
@ -733,7 +734,8 @@ ArrayRef<uint8_t> COFFObjectFile::getSymbolAuxData(
== 0 && "Aux Symbol data did not point to the beginning of a symbol"); == 0 && "Aux Symbol data did not point to the beginning of a symbol");
# endif # endif
} }
return ArrayRef<uint8_t>(Aux, Symbol->NumberOfAuxSymbols * sizeof(coff_symbol)); return ArrayRef<uint8_t>(Aux,
Symbol->NumberOfAuxSymbols * sizeof(coff_symbol));
} }
error_code COFFObjectFile::getSectionName(const coff_section *Sec, error_code COFFObjectFile::getSectionName(const coff_section *Sec,
@ -977,7 +979,8 @@ error_code ExportDirectoryEntryRef::getExportRVA(uint32_t &Result) const {
if (error_code EC = OwningObject->getRvaPtr( if (error_code EC = OwningObject->getRvaPtr(
ExportTable->ExportAddressTableRVA, IntPtr)) ExportTable->ExportAddressTableRVA, IntPtr))
return EC; return EC;
const export_address_table_entry *entry = reinterpret_cast<const export_address_table_entry *>(IntPtr); const export_address_table_entry *entry =
reinterpret_cast<const export_address_table_entry *>(IntPtr);
Result = entry[Index].ExportRVA; Result = entry[Index].ExportRVA;
return object_error::success; return object_error::success;
} }