LLVM
8.0.1
|
#include "llvm/Object/Archive.h"
Public Member Functions | |
Child (const Archive *Parent, const char *Start, Error *Err) | |
Child (const Archive *Parent, StringRef Data, uint16_t StartOfFile) | |
bool | operator== (const Child &other) const |
const Archive * | getParent () const |
Expected< Child > | getNext () const |
Expected< StringRef > | getName () const |
Expected< std::string > | getFullName () const |
Expected< StringRef > | getRawName () const |
Expected< sys::TimePoint< std::chrono::seconds > > | getLastModified () const |
StringRef | getRawLastModified () const |
Expected< unsigned > | getUID () const |
Expected< unsigned > | getGID () const |
Expected< sys::fs::perms > | getAccessMode () const |
Expected< uint64_t > | getSize () const |
Expected< uint64_t > | getRawSize () const |
Expected< StringRef > | getBuffer () const |
uint64_t | getChildOffset () const |
Expected< MemoryBufferRef > | getMemoryBufferRef () const |
Expected< std::unique_ptr< Binary > > | getAsBinary (LLVMContext *Context=nullptr) const |
Definition at line 328 of file Archive.cpp.
Referenced by getNext().
Definition at line 322 of file Archive.cpp.
|
inline |
Definition at line 128 of file Archive.h.
References Context, llvm::object::ArchiveMemberHeader::getAccessMode(), and llvm::object::ArchiveMemberHeader::getSize().
Referenced by llvm::NewArchiveMember::getOldMember().
Expected< std::unique_ptr< Binary > > Archive::Child::getAsBinary | ( | LLVMContext * | Context = nullptr | ) | const |
Definition at line 520 of file Archive.cpp.
References Context, llvm::object::createBinary(), llvm::Expected< T >::get(), getMemoryBufferRef(), and llvm::Expected< T >::takeError().
Definition at line 435 of file Archive.cpp.
References llvm::StringRef::data(), llvm::errorCodeToError(), llvm::Expected< T >::get(), llvm::ErrorOr< T >::getError(), llvm::MemoryBuffer::getFile(), getFullName(), getSize(), llvm::object::Archive::isThin(), Size, and llvm::Expected< T >::takeError().
Referenced by getMemoryBufferRef().
uint64_t Archive::Child::getChildOffset | ( | ) | const |
Definition at line 489 of file Archive.cpp.
References llvm::object::Binary::Data, llvm::StringRef::data(), and llvm::MemoryBufferRef::getBuffer().
Expected< std::string > Archive::Child::getFullName | ( | ) | const |
Definition at line 417 of file Archive.cpp.
References llvm::sys::path::append(), assert(), llvm::Expected< T >::get(), llvm::MemoryBufferRef::getBufferIdentifier(), llvm::object::Binary::getMemoryBufferRef(), getName(), llvm::sys::path::is_absolute(), llvm::object::Archive::isThin(), Name, llvm::sys::path::parent_path(), and llvm::Expected< T >::takeError().
Referenced by getBuffer().
Definition at line 126 of file Archive.h.
References llvm::object::ArchiveMemberHeader::getGID().
Referenced by llvm::NewArchiveMember::getOldMember().
|
inline |
Definition at line 117 of file Archive.h.
References llvm::object::ArchiveMemberHeader::getLastModified().
Referenced by llvm::NewArchiveMember::getOldMember().
Expected< MemoryBufferRef > Archive::Child::getMemoryBufferRef | ( | ) | const |
Definition at line 508 of file Archive.cpp.
References llvm::Expected< T >::get(), getBuffer(), getName(), Name, and llvm::Expected< T >::takeError().
Referenced by getAsBinary(), and llvm::NewArchiveMember::getOldMember().
Definition at line 496 of file Archive.cpp.
References llvm::Expected< T >::get(), llvm::object::ArchiveMemberHeader::getName(), getRawSize(), llvm::object::ArchiveMemberHeader::getSizeOf(), Name, and llvm::Expected< T >::takeError().
Referenced by getFullName(), getMemoryBufferRef(), and getNext().
Expected< Archive::Child > Archive::Child::getNext | ( | ) | const |
Definition at line 457 of file Archive.cpp.
References Child(), llvm::consumeError(), llvm::object::Binary::Data, llvm::StringRef::data(), llvm::Expected< T >::get(), llvm::MemoryBufferRef::getBufferEnd(), llvm::object::Binary::getData(), getName(), malformedError(), llvm::StringRef::size(), and llvm::Expected< T >::takeError().
Referenced by llvm::object::Archive::child_iterator::operator++().
Definition at line 110 of file Archive.h.
References llvm::object::ArchiveMemberHeader::getName().
Referenced by llvm::object::Archive::child_iterator::operator++().
|
inline |
Definition at line 121 of file Archive.h.
References llvm::object::ArchiveMemberHeader::getRawLastModified().
Definition at line 115 of file Archive.h.
References llvm::object::ArchiveMemberHeader::getRawName().
Expected< uint64_t > Archive::Child::getRawSize | ( | ) | const |
Definition at line 405 of file Archive.cpp.
References llvm::Expected< T >::get(), llvm::object::ArchiveMemberHeader::getRawName(), llvm::object::ArchiveMemberHeader::getSize(), Name, and llvm::Expected< T >::takeError().
Referenced by getName().
Expected< uint64_t > Archive::Child::getSize | ( | ) | const |
Definition at line 395 of file Archive.cpp.
References llvm::Expected< T >::get(), llvm::object::ArchiveMemberHeader::getSize(), Size, llvm::StringRef::size(), and llvm::Expected< T >::takeError().
Referenced by getBuffer().
Definition at line 125 of file Archive.h.
References llvm::object::ArchiveMemberHeader::getUID().
Referenced by llvm::NewArchiveMember::getOldMember().
Definition at line 105 of file Archive.h.
References assert(), and llvm::StringRef::begin().