LLVM API Documentation
#include <Archive.h>
Public Member Functions | |
Child (const Archive *Parent, const char *Start) | |
bool | operator== (const Child &other) const |
bool | operator< (const Child &other) const |
Child | getNext () const |
ErrorOr< StringRef > | getName () const |
StringRef | getRawName () const |
sys::TimeValue | getLastModified () const |
unsigned | getUID () const |
unsigned | getGID () const |
sys::fs::perms | getAccessMode () const |
uint64_t | getSize () const |
StringRef | getBuffer () const |
ErrorOr< MemoryBufferRef > | getMemoryBufferRef () const |
ErrorOr< std::unique_ptr < Binary > > | getAsBinary (LLVMContext *Context=nullptr) const |
Archive::Child::Child | ( | const Archive * | Parent, |
const char * | Start | ||
) |
Definition at line 82 of file Archive.cpp.
References llvm::StringRef::getAsInteger(), llvm::object::ArchiveMemberHeader::getName(), llvm::object::ArchiveMemberHeader::getSize(), llvm_unreachable, Name, llvm::COFF::NameSize, llvm::StringRef::rtrim(), llvm::StringRef::startswith(), and llvm::StringRef::substr().
sys::fs::perms llvm::object::Archive::Child::getAccessMode | ( | ) | const [inline] |
Definition at line 82 of file Archive.h.
References llvm::object::ArchiveMemberHeader::getAccessMode().
ErrorOr< std::unique_ptr< Binary > > Archive::Child::getAsBinary | ( | LLVMContext * | Context = nullptr | ) | const |
Definition at line 171 of file Archive.cpp.
References llvm::object::createBinary(), llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), and llvm::object::Binary::getMemoryBufferRef().
Referenced by llvm::MCJIT::getSymbolAddress().
StringRef llvm::object::Archive::Child::getBuffer | ( | ) | const [inline] |
Definition at line 88 of file Archive.h.
References llvm::StringRef::data(), and getSize().
Referenced by llvm::object::Archive::Symbol::getName(), llvm::object::Archive::symbol_begin(), and llvm::object::Archive::symbol_end().
unsigned llvm::object::Archive::Child::getGID | ( | ) | const [inline] |
Definition at line 81 of file Archive.h.
References llvm::object::ArchiveMemberHeader::getGID().
sys::TimeValue llvm::object::Archive::Child::getLastModified | ( | ) | const [inline] |
Definition at line 77 of file Archive.h.
References llvm::object::ArchiveMemberHeader::getLastModified().
ErrorOr< MemoryBufferRef > Archive::Child::getMemoryBufferRef | ( | ) | const |
Definition at line 162 of file Archive.cpp.
References llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), llvm::Intrinsic::getName(), and Name.
ErrorOr< StringRef > Archive::Child::getName | ( | ) | const |
Definition at line 118 of file Archive.cpp.
References llvm::object::Binary::Data, llvm::StringRef::find(), llvm::StringRef::getAsInteger(), llvm::object::Archive::K_GNU, llvm_unreachable, llvm::object::parse_failed, llvm::StringRef::rtrim(), llvm::StringRef::size(), llvm::StringRef::startswith(), and llvm::StringRef::substr().
Referenced by llvm::object::Archive::Archive().
Archive::Child Archive::Child::getNext | ( | ) | const |
Definition at line 103 of file Archive.cpp.
References llvm::object::Binary::Data.
Referenced by llvm::object::Archive::child_iterator::operator++().
StringRef llvm::object::Archive::Child::getRawName | ( | ) | const [inline] |
Definition at line 76 of file Archive.h.
References llvm::object::ArchiveMemberHeader::getName().
Referenced by llvm::object::Archive::Archive().
uint64_t llvm::object::Archive::Child::getSize | ( | ) | const [inline] |
Definition at line 86 of file Archive.h.
References llvm::StringRef::size().
Referenced by getBuffer().
unsigned llvm::object::Archive::Child::getUID | ( | ) | const [inline] |
Definition at line 80 of file Archive.h.
References llvm::object::ArchiveMemberHeader::getUID().
Definition at line 69 of file Archive.h.
References llvm::StringRef::begin().
Definition at line 64 of file Archive.h.
References llvm::StringRef::begin().