LLVM API Documentation
#include <ObjectFile.h>
Public Types | |
typedef iterator_range < symbol_iterator > | symbol_iterator_range |
typedef iterator_range < section_iterator > | section_iterator_range |
Public Member Functions | |
symbol_iterator_range | symbols () const |
virtual section_iterator | section_begin () const =0 |
virtual section_iterator | section_end () const =0 |
section_iterator_range | sections () const |
virtual uint8_t | getBytesInAddress () const =0 |
The number of bytes used to represent an address in this object file format. | |
virtual StringRef | getFileFormatName () const =0 |
virtual unsigned | getArch () const =0 |
virtual std::error_code | getPlatformFlags (unsigned &Result) const |
Returns platform-specific object flags, if any. | |
virtual bool | isRelocatableObject () const =0 |
True if this is a relocatable object (.o/.obj). | |
Static Public Member Functions | |
static ErrorOr< OwningBinary < ObjectFile > > | createObjectFile (StringRef ObjectPath) |
Create ObjectFile from path. | |
static ErrorOr < std::unique_ptr< ObjectFile > > | createObjectFile (MemoryBufferRef Object, sys::fs::file_magic Type) |
static ErrorOr < std::unique_ptr< ObjectFile > > | createObjectFile (MemoryBufferRef Object) |
static bool | classof (const Binary *v) |
static ErrorOr < std::unique_ptr < COFFObjectFile > > | createCOFFObjectFile (MemoryBufferRef Object) |
static ErrorOr < std::unique_ptr< ObjectFile > > | createELFObjectFile (MemoryBufferRef Object) |
static ErrorOr < std::unique_ptr < MachOObjectFile > > | createMachOObjectFile (MemoryBufferRef Object) |
Protected Member Functions | |
ObjectFile (unsigned int Type, MemoryBufferRef Source) | |
const uint8_t * | base () const |
virtual std::error_code | getSymbolName (DataRefImpl Symb, StringRef &Res) const =0 |
std::error_code | printSymbolName (raw_ostream &OS, DataRefImpl Symb) const override |
virtual std::error_code | getSymbolAddress (DataRefImpl Symb, uint64_t &Res) const =0 |
virtual std::error_code | getSymbolAlignment (DataRefImpl Symb, uint32_t &Res) const |
virtual std::error_code | getSymbolSize (DataRefImpl Symb, uint64_t &Res) const =0 |
virtual std::error_code | getSymbolType (DataRefImpl Symb, SymbolRef::Type &Res) const =0 |
virtual std::error_code | getSymbolSection (DataRefImpl Symb, section_iterator &Res) const =0 |
virtual std::error_code | getSymbolOther (DataRefImpl Symb, uint8_t &Res) const |
virtual void | moveSectionNext (DataRefImpl &Sec) const =0 |
virtual std::error_code | getSectionName (DataRefImpl Sec, StringRef &Res) const =0 |
virtual std::error_code | getSectionAddress (DataRefImpl Sec, uint64_t &Res) const =0 |
virtual std::error_code | getSectionSize (DataRefImpl Sec, uint64_t &Res) const =0 |
virtual std::error_code | getSectionContents (DataRefImpl Sec, StringRef &Res) const =0 |
virtual std::error_code | getSectionAlignment (DataRefImpl Sec, uint64_t &Res) const =0 |
virtual std::error_code | isSectionText (DataRefImpl Sec, bool &Res) const =0 |
virtual std::error_code | isSectionData (DataRefImpl Sec, bool &Res) const =0 |
virtual std::error_code | isSectionBSS (DataRefImpl Sec, bool &Res) const =0 |
virtual std::error_code | isSectionRequiredForExecution (DataRefImpl Sec, bool &Res) const =0 |
virtual std::error_code | isSectionVirtual (DataRefImpl Sec, bool &Res) const =0 |
virtual std::error_code | isSectionZeroInit (DataRefImpl Sec, bool &Res) const =0 |
virtual std::error_code | isSectionReadOnlyData (DataRefImpl Sec, bool &Res) const =0 |
virtual std::error_code | sectionContainsSymbol (DataRefImpl Sec, DataRefImpl Symb, bool &Result) const =0 |
virtual relocation_iterator | section_rel_begin (DataRefImpl Sec) const =0 |
virtual relocation_iterator | section_rel_end (DataRefImpl Sec) const =0 |
virtual section_iterator | getRelocatedSection (DataRefImpl Sec) const |
virtual void | moveRelocationNext (DataRefImpl &Rel) const =0 |
virtual std::error_code | getRelocationAddress (DataRefImpl Rel, uint64_t &Res) const =0 |
virtual std::error_code | getRelocationOffset (DataRefImpl Rel, uint64_t &Res) const =0 |
virtual symbol_iterator | getRelocationSymbol (DataRefImpl Rel) const =0 |
virtual std::error_code | getRelocationType (DataRefImpl Rel, uint64_t &Res) const =0 |
virtual std::error_code | getRelocationTypeName (DataRefImpl Rel, SmallVectorImpl< char > &Result) const =0 |
virtual std::error_code | getRelocationValueString (DataRefImpl Rel, SmallVectorImpl< char > &Result) const =0 |
virtual std::error_code | getRelocationHidden (DataRefImpl Rel, bool &Result) const |
Friends | |
class | SymbolRef |
class | SectionRef |
class | RelocationRef |
ObjectFile - This class is the base class for all object file types. Concrete instances of this object are created by createObjectFile, which figures out which type to create.
Definition at line 184 of file ObjectFile.h.
Definition at line 287 of file ObjectFile.h.
Definition at line 279 of file ObjectFile.h.
ObjectFile::ObjectFile | ( | unsigned int | Type, |
MemoryBufferRef | Source | ||
) | [protected] |
Definition at line 28 of file ObjectFile.cpp.
const uint8_t* llvm::object::ObjectFile::base | ( | ) | const [inline, protected] |
Definition at line 192 of file ObjectFile.h.
References llvm::object::Binary::Data, and llvm::MemoryBufferRef::getBufferStart().
Referenced by llvm::object::COFFObjectFile::COFFObjectFile(), llvm::object::COFFObjectFile::getRvaPtr(), llvm::object::COFFObjectFile::getSymbolAuxData(), llvm::object::COFFObjectFile::section_rel_begin(), llvm::object::COFFObjectFile::section_rel_end(), and llvm::object::COFFObjectFile::toSymb().
static bool llvm::object::ObjectFile::classof | ( | const Binary * | v | ) | [inline, static] |
Reimplemented from llvm::object::SymbolicFile.
Reimplemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Definition at line 323 of file ObjectFile.h.
References llvm::object::Binary::isObject().
ErrorOr< std::unique_ptr< COFFObjectFile > > ObjectFile::createCOFFObjectFile | ( | MemoryBufferRef | Object | ) | [static] |
Definition at line 1126 of file COFFObjectFile.cpp.
References llvm::MipsISD::Ret.
Referenced by createObjectFile().
ErrorOr< std::unique_ptr< ObjectFile > > llvm::ObjectFile::createELFObjectFile | ( | MemoryBufferRef | Object | ) | [static] |
Definition at line 24 of file ELFObjectFile.cpp.
References llvm::countTrailingZeros(), llvm::ELF::ELFCLASS32, llvm::ELF::ELFCLASS64, llvm::ELF::ELFDATA2LSB, llvm::ELF::ELFDATA2MSB, llvm::MemoryBufferRef::getBuffer(), llvm::MemoryBufferRef::getBufferStart(), llvm::object::getElfArchType(), llvm_unreachable, and llvm::object::parse_failed.
Referenced by createObjectFile().
ErrorOr< std::unique_ptr< MachOObjectFile > > ObjectFile::createMachOObjectFile | ( | MemoryBufferRef | Object | ) | [static] |
Definition at line 2489 of file MachOObjectFile.cpp.
References llvm::MemoryBufferRef::getBuffer(), Magic, llvm::object::parse_failed, llvm::MipsISD::Ret, and llvm::StringRef::slice().
Referenced by createObjectFile(), and llvm::object::MachOUniversalBinary::ObjectForArch::getAsObjectFile().
ErrorOr< OwningBinary< ObjectFile > > ObjectFile::createObjectFile | ( | StringRef | ObjectPath | ) | [static] |
Create ObjectFile from path.
ObjectPath | The path to the object file. ObjectPath.isObject must return true. |
Definition at line 88 of file ObjectFile.cpp.
References llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), and llvm::MemoryBuffer::getFile().
Referenced by createObjectFile(), llvm::object::SymbolicFile::createSymbolicFile(), LLVMCreateObjectFile(), llvm::coverage::ObjectFileCoverageMappingReader::ObjectFileCoverageMappingReader(), and llvm::ObjectImageCommon::ObjectImageCommon().
ErrorOr< std::unique_ptr< ObjectFile > > ObjectFile::createObjectFile | ( | MemoryBufferRef | Object, |
sys::fs::file_magic | Type | ||
) | [static] |
Definition at line 51 of file ObjectFile.cpp.
References llvm::sys::fs::file_magic::archive, llvm::sys::fs::file_magic::bitcode, llvm::sys::fs::file_magic::coff_import_library, llvm::sys::fs::file_magic::coff_object, createCOFFObjectFile(), createELFObjectFile(), createMachOObjectFile(), llvm::object::Binary::Data, llvm::sys::fs::file_magic::elf_core, llvm::sys::fs::file_magic::elf_executable, llvm::sys::fs::file_magic::elf_relocatable, llvm::sys::fs::file_magic::elf_shared_object, llvm::MemoryBufferRef::getBuffer(), llvm::sys::fs::identify_magic(), llvm::object::invalid_file_type, llvm_unreachable, llvm::sys::fs::file_magic::macho_bundle, llvm::sys::fs::file_magic::macho_core, llvm::sys::fs::file_magic::macho_dsym_companion, llvm::sys::fs::file_magic::macho_dynamic_linker, llvm::sys::fs::file_magic::macho_dynamically_linked_shared_lib, llvm::sys::fs::file_magic::macho_dynamically_linked_shared_lib_stub, llvm::sys::fs::file_magic::macho_executable, llvm::sys::fs::file_magic::macho_fixed_virtual_memory_shared_lib, llvm::sys::fs::file_magic::macho_object, llvm::sys::fs::file_magic::macho_preload_executable, llvm::sys::fs::file_magic::macho_universal_binary, llvm::sys::fs::file_magic::pecoff_executable, llvm::sys::fs::file_magic::unknown, and llvm::sys::fs::file_magic::windows_resource.
static ErrorOr<std::unique_ptr<ObjectFile> > llvm::object::ObjectFile::createObjectFile | ( | MemoryBufferRef | Object | ) | [inline, static] |
Definition at line 318 of file ObjectFile.h.
References createObjectFile(), and llvm::sys::fs::file_magic::unknown.
virtual unsigned llvm::object::ObjectFile::getArch | ( | ) | const [pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
virtual uint8_t llvm::object::ObjectFile::getBytesInAddress | ( | ) | const [pure virtual] |
The number of bytes used to represent an address in this object file format.
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::coverage::ObjectFileCoverageMappingReader::readHeader().
virtual StringRef llvm::object::ObjectFile::getFileFormatName | ( | ) | const [pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::DWARFContextInMemory::DWARFContextInMemory().
virtual std::error_code llvm::object::ObjectFile::getPlatformFlags | ( | unsigned & | Result | ) | const [inline, virtual] |
Returns platform-specific object flags, if any.
Reimplemented in llvm::object::ELFObjectFile< ELFT >.
Definition at line 300 of file ObjectFile.h.
References llvm::object::invalid_file_type.
Referenced by llvm::RuntimeDyldELF::processRelocationRef().
section_iterator ObjectFile::getRelocatedSection | ( | DataRefImpl | Sec | ) | const [protected, virtual] |
Reimplemented in llvm::object::ELFObjectFile< ELFT >.
Definition at line 46 of file ObjectFile.cpp.
References SectionRef.
Referenced by llvm::object::SectionRef::getRelocatedSection().
virtual std::error_code llvm::object::ObjectFile::getRelocationAddress | ( | DataRefImpl | Rel, |
uint64_t & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::RelocationRef::getAddress().
virtual std::error_code llvm::object::ObjectFile::getRelocationHidden | ( | DataRefImpl | Rel, |
bool & | Result | ||
) | const [inline, protected, virtual] |
Reimplemented in llvm::object::MachOObjectFile.
Definition at line 272 of file ObjectFile.h.
References llvm::object::success.
Referenced by llvm::object::RelocationRef::getHidden().
virtual std::error_code llvm::object::ObjectFile::getRelocationOffset | ( | DataRefImpl | Rel, |
uint64_t & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::RelocationRef::getOffset().
virtual symbol_iterator llvm::object::ObjectFile::getRelocationSymbol | ( | DataRefImpl | Rel | ) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::RelocationRef::getSymbol().
virtual std::error_code llvm::object::ObjectFile::getRelocationType | ( | DataRefImpl | Rel, |
uint64_t & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::RelocationRef::getType().
virtual std::error_code llvm::object::ObjectFile::getRelocationTypeName | ( | DataRefImpl | Rel, |
SmallVectorImpl< char > & | Result | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::RelocationRef::getTypeName().
virtual std::error_code llvm::object::ObjectFile::getRelocationValueString | ( | DataRefImpl | Rel, |
SmallVectorImpl< char > & | Result | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::RelocationRef::getValueString().
virtual std::error_code llvm::object::ObjectFile::getSectionAddress | ( | DataRefImpl | Sec, |
uint64_t & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::getAddress().
virtual std::error_code llvm::object::ObjectFile::getSectionAlignment | ( | DataRefImpl | Sec, |
uint64_t & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::getAlignment().
virtual std::error_code llvm::object::ObjectFile::getSectionContents | ( | DataRefImpl | Sec, |
StringRef & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::getContents().
virtual std::error_code llvm::object::ObjectFile::getSectionName | ( | DataRefImpl | Sec, |
StringRef & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::getName().
virtual std::error_code llvm::object::ObjectFile::getSectionSize | ( | DataRefImpl | Sec, |
uint64_t & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::getSize().
virtual std::error_code llvm::object::ObjectFile::getSymbolAddress | ( | DataRefImpl | Symb, |
uint64_t & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SymbolRef::getAddress().
std::error_code ObjectFile::getSymbolAlignment | ( | DataRefImpl | Symb, |
uint32_t & | Res | ||
) | const [protected, virtual] |
Reimplemented in llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Definition at line 40 of file ObjectFile.cpp.
References llvm::object::success.
Referenced by llvm::object::SymbolRef::getAlignment().
virtual std::error_code llvm::object::ObjectFile::getSymbolName | ( | DataRefImpl | Symb, |
StringRef & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SymbolRef::getName(), and printSymbolName().
virtual std::error_code llvm::object::ObjectFile::getSymbolOther | ( | DataRefImpl | Symb, |
uint8_t & | Res | ||
) | const [inline, protected, virtual] |
Reimplemented in llvm::object::ELFObjectFile< ELFT >.
Definition at line 219 of file ObjectFile.h.
References llvm::object::invalid_file_type.
Referenced by llvm::object::SymbolRef::getOther().
virtual std::error_code llvm::object::ObjectFile::getSymbolSection | ( | DataRefImpl | Symb, |
section_iterator & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SymbolRef::getSection().
virtual std::error_code llvm::object::ObjectFile::getSymbolSize | ( | DataRefImpl | Symb, |
uint64_t & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SymbolRef::getSize().
virtual std::error_code llvm::object::ObjectFile::getSymbolType | ( | DataRefImpl | Symb, |
SymbolRef::Type & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SymbolRef::getType().
virtual bool llvm::object::ObjectFile::isRelocatableObject | ( | ) | const [pure virtual] |
True if this is a relocatable object (.o/.obj).
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
virtual std::error_code llvm::object::ObjectFile::isSectionBSS | ( | DataRefImpl | Sec, |
bool & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::isBSS().
virtual std::error_code llvm::object::ObjectFile::isSectionData | ( | DataRefImpl | Sec, |
bool & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::isData().
virtual std::error_code llvm::object::ObjectFile::isSectionReadOnlyData | ( | DataRefImpl | Sec, |
bool & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::isReadOnlyData().
virtual std::error_code llvm::object::ObjectFile::isSectionRequiredForExecution | ( | DataRefImpl | Sec, |
bool & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::isRequiredForExecution().
virtual std::error_code llvm::object::ObjectFile::isSectionText | ( | DataRefImpl | Sec, |
bool & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::isText().
virtual std::error_code llvm::object::ObjectFile::isSectionVirtual | ( | DataRefImpl | Sec, |
bool & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::isVirtual().
virtual std::error_code llvm::object::ObjectFile::isSectionZeroInit | ( | DataRefImpl | Sec, |
bool & | Res | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::isZeroInit().
virtual void llvm::object::ObjectFile::moveRelocationNext | ( | DataRefImpl & | Rel | ) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::RelocationRef::moveNext().
virtual void llvm::object::ObjectFile::moveSectionNext | ( | DataRefImpl & | Sec | ) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::moveNext().
std::error_code ObjectFile::printSymbolName | ( | raw_ostream & | OS, |
DataRefImpl | Symb | ||
) | const [override, protected, virtual] |
Implements llvm::object::SymbolicFile.
Definition at line 31 of file ObjectFile.cpp.
References getSymbolName(), Name, and llvm::object::success.
virtual section_iterator llvm::object::ObjectFile::section_begin | ( | ) | const [pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::getOffset(), and sections().
virtual section_iterator llvm::object::ObjectFile::section_end | ( | ) | const [pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::DWARFContextInMemory::DWARFContextInMemory(), llvm::getOffset(), and sections().
virtual relocation_iterator llvm::object::ObjectFile::section_rel_begin | ( | DataRefImpl | Sec | ) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::relocation_begin().
virtual relocation_iterator llvm::object::ObjectFile::section_rel_end | ( | DataRefImpl | Sec | ) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::relocation_end().
virtual std::error_code llvm::object::ObjectFile::sectionContainsSymbol | ( | DataRefImpl | Sec, |
DataRefImpl | Symb, | ||
bool & | Result | ||
) | const [protected, pure virtual] |
Implemented in llvm::object::COFFObjectFile, llvm::object::MachOObjectFile, and llvm::object::ELFObjectFile< ELFT >.
Referenced by llvm::object::SectionRef::containsSymbol().
section_iterator_range llvm::object::ObjectFile::sections | ( | ) | const [inline] |
Definition at line 288 of file ObjectFile.h.
References section_begin(), and section_end().
Referenced by llvm::DWARFContextInMemory::DWARFContextInMemory(), llvm::object::COFFObjectFile::getRvaPtr(), printRelocationTargetName(), and llvm::coverage::ObjectFileCoverageMappingReader::readHeader().
symbol_iterator_range llvm::object::ObjectFile::symbols | ( | ) | const [inline] |
Reimplemented from llvm::object::SymbolicFile.
Definition at line 280 of file ObjectFile.h.
References llvm::object::SymbolicFile::symbol_begin(), and llvm::object::SymbolicFile::symbol_end().
Referenced by llvm::object::MachOObjectFile::getSymbolSize(), and printRelocationTargetName().
friend class RelocationRef [friend] |
Definition at line 257 of file ObjectFile.h.
Referenced by llvm::object::COFFObjectFile::section_rel_begin(), and llvm::object::COFFObjectFile::section_rel_end().
friend class SectionRef [friend] |
Definition at line 225 of file ObjectFile.h.
Referenced by getRelocatedSection(), llvm::object::MachOObjectFile::getRelocationSection(), llvm::object::MachOObjectFile::getSymbolSection(), llvm::object::COFFObjectFile::getSymbolSection(), llvm::object::MachOObjectFile::section_begin(), llvm::object::COFFObjectFile::section_begin(), llvm::object::MachOObjectFile::section_end(), and llvm::object::COFFObjectFile::section_end().
friend class SymbolRef [friend] |
Definition at line 204 of file ObjectFile.h.
Referenced by llvm::object::MachOObjectFile::getRelocationSymbol(), llvm::object::COFFObjectFile::getRelocationSymbol(), llvm::object::MachOObjectFile::getSymbolByIndex(), llvm::object::COFFObjectFile::symbol_begin_impl(), llvm::object::MachOObjectFile::symbol_end_impl(), and llvm::object::COFFObjectFile::symbol_end_impl().