Lines Matching defs:COFFObjectFile

1 //===- COFFObjectFile.cpp - COFF object file implementation ---------------===//
9 // This file declares the COFFObjectFile class.
101 const coff_symbol_type *COFFObjectFile::toSymb(DataRefImpl Ref) const {
118 const coff_section *COFFObjectFile::toSec(DataRefImpl Ref) const {
135 void COFFObjectFile::moveSymbolNext(DataRefImpl &Ref) const {
150 Expected<StringRef> COFFObjectFile::getSymbolName(DataRefImpl Ref) const {
154 uint64_t COFFObjectFile::getSymbolValueImpl(DataRefImpl Ref) const {
158 uint32_t COFFObjectFile::getSymbolAlignment(DataRefImpl Ref) const {
165 Expected<uint64_t> COFFObjectFile::getSymbolAddress(DataRefImpl Ref) const {
186 Expected<SymbolRef::Type> COFFObjectFile::getSymbolType(DataRefImpl Ref) const {
209 Expected<uint32_t> COFFObjectFile::getSymbolFlags(DataRefImpl Ref) const {
240 uint64_t COFFObjectFile::getCommonSymbolSizeImpl(DataRefImpl Ref) const {
246 COFFObjectFile::getSymbolSection(DataRefImpl Ref) const {
258 unsigned COFFObjectFile::getSymbolSectionID(SymbolRef Sym) const {
263 void COFFObjectFile::moveSectionNext(DataRefImpl &Ref) const {
269 Expected<StringRef> COFFObjectFile::getSectionName(DataRefImpl Ref) const {
274 uint64_t COFFObjectFile::getSectionAddress(DataRefImpl Ref) const {
284 uint64_t COFFObjectFile::getSectionIndex(DataRefImpl Sec) const {
288 uint64_t COFFObjectFile::getSectionSize(DataRefImpl Ref) const {
293 COFFObjectFile::getSectionContents(DataRefImpl Ref) const {
301 uint64_t COFFObjectFile::getSectionAlignment(DataRefImpl Ref) const {
306 bool COFFObjectFile::isSectionCompressed(DataRefImpl Sec) const {
310 bool COFFObjectFile::isSectionText(DataRefImpl Ref) const {
315 bool COFFObjectFile::isSectionData(DataRefImpl Ref) const {
320 bool COFFObjectFile::isSectionBSS(DataRefImpl Ref) const {
330 bool COFFObjectFile::isDebugSection(DataRefImpl Ref) const {
341 unsigned COFFObjectFile::getSectionID(SectionRef Sec) const {
348 bool COFFObjectFile::isSectionVirtual(DataRefImpl Ref) const {
395 relocation_iterator COFFObjectFile::section_rel_begin(DataRefImpl Ref) const {
405 relocation_iterator COFFObjectFile::section_rel_end(DataRefImpl Ref) const {
416 Error COFFObjectFile::initSymbolTablePtr() {
454 uint64_t COFFObjectFile::getImageBase() const {
464 Error COFFObjectFile::getVaPtr(uint64_t Addr, uintptr_t &Res) const {
472 Error COFFObjectFile::getRvaPtr(uint32_t Addr, uintptr_t &Res,
484 // COFFObjectFile::initialize can ignore the error.
506 Error COFFObjectFile::getRvaAndSizeAsBytes(uint32_t RVA, uint32_t Size,
534 Error COFFObjectFile::getHintName(uint32_t Rva, uint16_t &Hint,
545 Error COFFObjectFile::getDebugPDBInfo(const debug_directory *DebugDir,
564 Error COFFObjectFile::getDebugPDBInfo(const codeview::DebugInfo *&PDBInfo,
576 Error COFFObjectFile::initImportTablePtr() {
602 Error COFFObjectFile::initDelayImportTablePtr() {
626 Error COFFObjectFile::initExportTablePtr() {
649 Error COFFObjectFile::initBaseRelocPtr() {
673 Error COFFObjectFile::initDebugDirectoryPtr() {
703 Error COFFObjectFile::initTLSDirectoryPtr() {
738 Error COFFObjectFile::initLoadConfigPtr() {
806 Expected<std::unique_ptr<COFFObjectFile>>
807 COFFObjectFile::create(MemoryBufferRef Object) {
808 std::unique_ptr<COFFObjectFile> Obj(new COFFObjectFile(std::move(Object)));
814 COFFObjectFile::COFFObjectFile(MemoryBufferRef Object)
833 Error COFFObjectFile::initialize() {
975 basic_symbol_iterator COFFObjectFile::symbol_begin() const {
981 basic_symbol_iterator COFFObjectFile::symbol_end() const {
988 import_directory_iterator COFFObjectFile::import_directory_begin() const {
997 import_directory_iterator COFFObjectFile::import_directory_end() const {
1003 COFFObjectFile::delay_import_directory_begin() const {
1009 COFFObjectFile::delay_import_directory_end() const {
1015 export_directory_iterator COFFObjectFile::export_directory_begin() const {
1020 export_directory_iterator COFFObjectFile::export_directory_end() const {
1028 section_iterator COFFObjectFile::section_begin() const {
1034 section_iterator COFFObjectFile::section_end() const {
1042 base_reloc_iterator COFFObjectFile::base_reloc_begin() const {
1046 base_reloc_iterator COFFObjectFile::base_reloc_end() const {
1050 uint8_t COFFObjectFile::getBytesInAddress() const {
1054 StringRef COFFObjectFile::getFileFormatName() const {
1073 Triple::ArchType COFFObjectFile::getArch() const {
1077 Expected<uint64_t> COFFObjectFile::getStartAddress() const {
1084 COFFObjectFile::import_directories() const {
1089 COFFObjectFile::delay_import_directories() const {
1095 COFFObjectFile::export_directories() const {
1099 iterator_range<base_reloc_iterator> COFFObjectFile::base_relocs() const {
1103 const data_directory *COFFObjectFile::getDataDirectory(uint32_t Index) const {
1114 Expected<const coff_section *> COFFObjectFile::getSection(int32_t Index) const {
1127 Expected<StringRef> COFFObjectFile::getString(uint32_t Offset) const {
1136 Expected<StringRef> COFFObjectFile::getSymbolName(COFFSymbolRef Symbol) const {
1141 COFFObjectFile::getSymbolName(const coff_symbol_generic *Symbol) const {
1155 COFFObjectFile::getSymbolAuxData(COFFSymbolRef Symbol) const {
1177 uint32_t COFFObjectFile::getSymbolIndex(COFFSymbolRef Symbol) const {
1188 COFFObjectFile::getSectionName(const coff_section *Sec) const {
1209 uint64_t COFFObjectFile::getSectionSize(const coff_section *Sec) const {
1225 Error COFFObjectFile::getSectionContents(const coff_section *Sec,
1243 const coff_relocation *COFFObjectFile::toRel(DataRefImpl Rel) const {
1247 void COFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const {
1252 uint64_t COFFObjectFile::getRelocationOffset(DataRefImpl Rel) const {
1257 symbol_iterator COFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const {
1271 uint64_t COFFObjectFile::getRelocationType(DataRefImpl Rel) const {
1277 COFFObjectFile::getCOFFSection(const SectionRef &Section) const {
1281 COFFSymbolRef COFFObjectFile::getCOFFSymbol(const DataRefImpl &Ref) const {
1289 COFFSymbolRef COFFObjectFile::getCOFFSymbol(const SymbolRef &Symbol) const {
1294 COFFObjectFile::getCOFFRelocation(const RelocationRef &Reloc) const {
1299 COFFObjectFile::getRelocations(const coff_section *Sec) const {
1308 StringRef COFFObjectFile::getRelocationTypeName(uint16_t Type) const {
1404 void COFFObjectFile::getRelocationTypeName(
1411 bool COFFObjectFile::isRelocatableObject() const {
1415 StringRef COFFObjectFile::mapDebugSectionName(StringRef Name) const {
1440 makeImportedSymbolIterator(const COFFObjectFile *Object,
1451 importedSymbolBegin(uint32_t RVA, const COFFObjectFile *Object) {
1459 importedSymbolEnd(uint32_t RVA, const COFFObjectFile *Object) {
1753 Expected<std::unique_ptr<COFFObjectFile>>
1755 return COFFObjectFile::create(Object);
1875 Error ResourceSectionRef::load(const COFFObjectFile *O) {
1888 Error ResourceSectionRef::load(const COFFObjectFile *O, const SectionRef &S) {