LLVM API Documentation
#include <Archive.h>
Classes | |
class | Child |
class | child_iterator |
class | Symbol |
class | symbol_iterator |
Public Types | |
enum | Kind { K_GNU, K_BSD, K_COFF } |
Public Member Functions | |
Archive (MemoryBufferRef Source, std::error_code &EC) | |
Kind | kind () const |
child_iterator | child_begin (bool SkipInternal=true) const |
child_iterator | child_end () const |
symbol_iterator | symbol_begin () const |
symbol_iterator | symbol_end () const |
child_iterator | findSym (StringRef name) const |
bool | hasSymbolTable () const |
Static Public Member Functions | |
static ErrorOr < std::unique_ptr< Archive > > | create (MemoryBufferRef Source) |
static bool | classof (Binary const *v) |
Archive::Archive | ( | MemoryBufferRef | Source, |
std::error_code & | EC | ||
) |
Definition at line 187 of file Archive.cpp.
References child_begin(), child_end(), llvm::object::Binary::Data, llvm::ErrorOr< T >::get(), llvm::MemoryBufferRef::getBufferSize(), llvm::MemoryBufferRef::getBufferStart(), llvm::ErrorOr< T >::getError(), llvm::object::Archive::Child::getName(), llvm::object::Archive::Child::getRawName(), llvm::object::invalid_file_type, K_BSD, K_COFF, K_GNU, Magic, Name, llvm::object::parse_failed, llvm::StringRef::startswith(), and llvm::object::success.
Referenced by create().
Archive::child_iterator Archive::child_begin | ( | bool | SkipInternal = true | ) | const |
Definition at line 304 of file Archive.cpp.
References child_end(), llvm::object::Binary::Data, llvm::MemoryBufferRef::getBufferSize(), llvm::MemoryBufferRef::getBufferStart(), Magic, and llvm::LibFunc::strlen.
Referenced by Archive().
Archive::child_iterator Archive::child_end | ( | ) | const |
Definition at line 316 of file Archive.cpp.
Referenced by Archive(), child_begin(), findSym(), llvm::MCJIT::getSymbolAddress(), and hasSymbolTable().
static bool llvm::object::Archive::classof | ( | Binary const * | v | ) | [inline, static] |
Definition at line 186 of file Archive.h.
References llvm::object::Binary::isArchive().
ErrorOr< std::unique_ptr< Archive > > Archive::create | ( | MemoryBufferRef | Source | ) | [static] |
Definition at line 179 of file Archive.cpp.
References Archive(), and llvm::MipsISD::Ret.
Referenced by llvm::object::createBinary().
Archive::child_iterator Archive::findSym | ( | StringRef | name | ) | const |
Definition at line 477 of file Archive.cpp.
References child_end(), llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), llvm::object::Archive::Symbol::getMember(), llvm::object::Archive::Symbol::getName(), symbol_begin(), and symbol_end().
Referenced by llvm::MCJIT::getSymbolAddress().
bool Archive::hasSymbolTable | ( | ) | const |
Definition at line 494 of file Archive.cpp.
References child_end().
Referenced by symbol_begin(), and symbol_end().
Kind llvm::object::Archive::kind | ( | ) | const [inline] |
Definition at line 175 of file Archive.h.
Referenced by symbol_begin(), and symbol_end().
Definition at line 418 of file Archive.cpp.
References llvm::StringRef::begin(), llvm::object::Archive::Child::getBuffer(), hasSymbolTable(), K_BSD, K_GNU, kind(), and llvm::ARMBuildAttrs::Symbol.
Referenced by findSym().
Archive::symbol_iterator Archive::symbol_end | ( | ) | const |
Definition at line 456 of file Archive.cpp.
References llvm::StringRef::begin(), llvm::object::Archive::Child::getBuffer(), hasSymbolTable(), K_BSD, K_GNU, kind(), and llvm::ARMBuildAttrs::Symbol.
Referenced by findSym().