projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow SMUL_LOHI and UMUL_LOHI to be narrow to MUL on targets where MUL is Custom...
[oota-llvm.git]
/
lib
/
Object
/
COFFObjectFile.cpp
diff --git
a/lib/Object/COFFObjectFile.cpp
b/lib/Object/COFFObjectFile.cpp
index 4709612167ce986d71b0b803258c626347e57808..ec8989d5c67cb07ffc35abdad0b8e36be568ebdd 100644
(file)
--- a/
lib/Object/COFFObjectFile.cpp
+++ b/
lib/Object/COFFObjectFile.cpp
@@
-458,7
+458,8
@@
error_code COFFObjectFile::initExportTablePtr() {
uintptr_t IntPtr = 0;
if (error_code EC = getRvaPtr(ExportTableRva, IntPtr))
return EC;
uintptr_t IntPtr = 0;
if (error_code EC = getRvaPtr(ExportTableRva, IntPtr))
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");
# endif
}
== 0 && "Aux Symbol data did not point to the beginning of a symbol");
# 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,
@@
-959,6
+961,12
@@
error_code ExportDirectoryEntryRef::getDllName(StringRef &Result) const {
return object_error::success;
}
return object_error::success;
}
+// Returns the starting ordinal number.
+error_code ExportDirectoryEntryRef::getOrdinalBase(uint32_t &Result) const {
+ Result = ExportTable->OrdinalBase;
+ return object_error::success;
+}
+
// Returns the export ordinal of the current export symbol.
error_code ExportDirectoryEntryRef::getOrdinal(uint32_t &Result) const {
Result = ExportTable->OrdinalBase + Index;
// Returns the export ordinal of the current export symbol.
error_code ExportDirectoryEntryRef::getOrdinal(uint32_t &Result) const {
Result = ExportTable->OrdinalBase + Index;
@@
-971,7
+979,8
@@
error_code ExportDirectoryEntryRef::getExportRVA(uint32_t &Result) const {
if (error_code EC = OwningObject->getRvaPtr(
ExportTable->ExportAddressTableRVA, IntPtr))
return EC;
if (error_code EC = OwningObject->getRvaPtr(
ExportTable->ExportAddressTableRVA, IntPtr))
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;
return object_error::success;
}
Result = entry[Index].ExportRVA;
return object_error::success;
}