LLVM
8.0.1
|
#include "llvm/Object/Archive.h"
Classes | |
class | Child |
class | child_iterator |
class | Symbol |
class | symbol_iterator |
Public Types | |
enum | Kind { K_GNU, K_GNU64, K_BSD, K_DARWIN, K_DARWIN64, K_COFF } |
Static Public Member Functions | |
static Expected< std::unique_ptr< Archive > > | create (MemoryBufferRef Source) |
static bool | classof (Binary const *v) |
Static Public Member Functions inherited from llvm::object::Binary | |
static std::error_code | checkOffset (MemoryBufferRef M, uintptr_t Addr, const uint64_t Size) |
Additional Inherited Members | |
Protected Types inherited from llvm::object::Binary | |
enum | { ID_Archive, ID_MachOUniversalBinary, ID_COFFImportFile, ID_IR, ID_WinRes, ID_StartObjects, ID_COFF, ID_ELF32L, ID_ELF32B, ID_ELF64L, ID_ELF64B, ID_MachO32L, ID_MachO32B, ID_MachO64L, ID_MachO64B, ID_Wasm, ID_EndObjects } |
Protected Member Functions inherited from llvm::object::Binary | |
Binary (unsigned int Type, MemoryBufferRef Source) | |
Static Protected Member Functions inherited from llvm::object::Binary | |
static unsigned int | getELFType (bool isLE, bool is64Bits) |
static unsigned int | getMachOType (bool isLE, bool is64Bits) |
Protected Attributes inherited from llvm::object::Binary | |
MemoryBufferRef | Data |
Archive::Archive | ( | MemoryBufferRef | Source, |
Error & | Err | ||
) |
Definition at line 544 of file Archive.cpp.
Archive::child_iterator Archive::child_begin | ( | Error & | Err, |
bool | SkipInternal = true |
||
) | const |
Definition at line 776 of file Archive.cpp.
Archive::child_iterator Archive::child_end | ( | ) | const |
Definition at line 793 of file Archive.cpp.
Referenced by llvm::object::Archive::child_iterator::operator++().
|
inline |
Definition at line 244 of file Archive.h.
References llvm::make_range().
Definition at line 256 of file Archive.h.
References llvm::object::Binary::isArchive(), and name.
|
static |
Definition at line 531 of file Archive.cpp.
Referenced by llvm::object::createBinary(), and llvm::object::MachOUniversalBinary::ObjectForArch::getAsArchive().
Expected< Optional< Archive::Child > > Archive::findSym | ( | StringRef | name | ) | const |
Definition at line 978 of file Archive.cpp.
References llvm::object::Archive::Symbol::getMember(), llvm::object::Archive::Symbol::getName(), symbol_begin(), and symbol_end().
Referenced by llvm::MCJIT::findSymbol(), and llvm::orc::OrcMCJITReplacement::setProcessAllSections().
uint32_t Archive::getNumberOfSymbols | ( | ) | const |
Definition at line 960 of file Archive.cpp.
References llvm::StringRef::begin(), getSymbolTable(), hasSymbolTable(), K_BSD, K_DARWIN64, K_GNU, K_GNU64, kind(), llvm::support::endian::read32be(), llvm::support::endian::read32le(), llvm::support::endian::read64be(), and llvm::support::endian::read64le().
Referenced by symbol_end().
|
inline |
Definition at line 266 of file Archive.h.
Referenced by llvm::object::ArchiveMemberHeader::getName().
|
inline |
Definition at line 265 of file Archive.h.
Referenced by getNumberOfSymbols(), and symbol_begin().
bool Archive::hasSymbolTable | ( | ) | const |
Definition at line 997 of file Archive.cpp.
References llvm::StringRef::empty().
Referenced by getNumberOfSymbols(), and symbol_begin().
bool Archive::isEmpty | ( | ) | const |
Definition at line 995 of file Archive.cpp.
References llvm::object::Binary::Data, and llvm::MemoryBufferRef::getBufferSize().
|
inline |
Definition at line 240 of file Archive.h.
Referenced by llvm::object::Archive::Child::getBuffer(), and llvm::object::Archive::Child::getFullName().
|
inline |
Definition at line 239 of file Archive.h.
References llvm::Format.
Referenced by llvm::object::ArchiveMemberHeader::getName(), getNumberOfSymbols(), llvm::object::ArchiveMemberHeader::getRawName(), and symbol_begin().
Archive::symbol_iterator Archive::symbol_begin | ( | ) | const |
Definition at line 900 of file Archive.cpp.
References llvm::StringRef::begin(), getSymbolTable(), hasSymbolTable(), K_BSD, K_DARWIN64, K_GNU, K_GNU64, kind(), llvm::support::endian::read32be(), llvm::support::endian::read32le(), llvm::support::endian::read64be(), llvm::support::endian::read64le(), and llvm::ARMBuildAttrs::Symbol.
Referenced by findSym().
Archive::symbol_iterator Archive::symbol_end | ( | ) | const |
Definition at line 956 of file Archive.cpp.
References getNumberOfSymbols(), and llvm::ARMBuildAttrs::Symbol.
Referenced by findSym().
|
inline |
Definition at line 251 of file Archive.h.
References llvm::make_range().
|
inline |
Definition at line 269 of file Archive.h.
References C, and llvm::Format.