LLVM
8.0.1
|
#include "llvm/Object/Archive.h"
Public Member Functions | |
ArchiveMemberHeader (Archive const *Parent, const char *RawHeaderPtr, uint64_t Size, Error *Err) | |
Expected< StringRef > | getRawName () const |
Get the name without looking up long names. More... | |
Expected< StringRef > | getName (uint64_t Size) const |
Get the name looking up long names. More... | |
Expected< uint32_t > | getSize () const |
Members are not larger than 4GB. More... | |
Expected< sys::fs::perms > | getAccessMode () const |
Expected< sys::TimePoint< std::chrono::seconds > > | getLastModified () const |
StringRef | getRawLastModified () const |
Expected< unsigned > | getUID () const |
Expected< unsigned > | getGID () const |
uint64_t | getSizeOf () const |
Friends | |
class | Archive |
ArchiveMemberHeader::ArchiveMemberHeader | ( | Archive const * | Parent, |
const char * | RawHeaderPtr, | ||
uint64_t | Size, | ||
Error * | Err | ||
) |
Definition at line 54 of file Archive.cpp.
Expected< sys::fs::perms > ArchiveMemberHeader::getAccessMode | ( | ) | const |
Definition at line 245 of file Archive.cpp.
References llvm::StringRef::data(), llvm::raw_ostream::flush(), llvm::StringRef::getAsInteger(), llvm::object::Binary::getData(), malformedError(), llvm::MipsISD::Ret, llvm::StringRef::rtrim(), and llvm::raw_ostream::write_escaped().
Referenced by llvm::object::Archive::Child::getAccessMode().
Definition at line 303 of file Archive.cpp.
References llvm::StringRef::data(), llvm::StringRef::empty(), llvm::raw_ostream::flush(), llvm::StringRef::getAsInteger(), llvm::object::Binary::getData(), malformedError(), llvm::MipsISD::Ret, llvm::StringRef::rtrim(), and llvm::raw_ostream::write_escaped().
Referenced by llvm::object::Archive::Child::getGID(), and getRawLastModified().
Expected< sys::TimePoint< std::chrono::seconds > > ArchiveMemberHeader::getLastModified | ( | ) | const |
Definition at line 264 of file Archive.cpp.
References llvm::StringRef::data(), llvm::raw_ostream::flush(), llvm::StringRef::getAsInteger(), llvm::object::Binary::getData(), malformedError(), llvm::StringRef::rtrim(), llvm::sys::toTimePoint(), and llvm::raw_ostream::write_escaped().
Referenced by llvm::object::Archive::Child::getLastModified().
Get the name looking up long names.
Definition at line 129 of file Archive.cpp.
References llvm::StringRef::data(), llvm::raw_ostream::flush(), llvm::Expected< T >::get(), llvm::StringRef::getAsInteger(), llvm::object::Binary::getData(), getRawName(), llvm::object::Archive::getStringTable(), llvm::object::Archive::K_GNU, llvm::object::Archive::K_GNU64, llvm::object::Archive::kind(), malformedError(), Name, offsetof, llvm::StringRef::rtrim(), llvm::StringRef::size(), llvm::StringRef::substr(), llvm::Expected< T >::takeError(), and llvm::raw_ostream::write_escaped().
Referenced by llvm::object::Archive::Child::getName(), llvm::object::Archive::Child::getParent(), and llvm::object::Archive::Symbol::operator==().
|
inline |
Definition at line 57 of file Archive.h.
References getGID(), getUID(), and llvm::StringRef::rtrim().
Referenced by llvm::object::Archive::Child::getRawLastModified().
Get the name without looking up long names.
Definition at line 101 of file Archive.cpp.
References assert(), llvm::StringRef::data(), llvm::sys::path::end(), llvm::StringRef::find(), llvm::object::Binary::getData(), llvm::object::Archive::K_BSD, llvm::object::Archive::K_DARWIN64, llvm::object::Archive::kind(), malformedError(), and llvm::StringRef::npos.
Referenced by getName(), llvm::object::Archive::Child::getRawName(), and llvm::object::Archive::Child::getRawSize().
Members are not larger than 4GB.
Definition at line 227 of file Archive.cpp.
References llvm::StringRef::data(), llvm::raw_ostream::flush(), llvm::StringRef::getAsInteger(), llvm::object::Binary::getData(), malformedError(), llvm::MipsISD::Ret, llvm::StringRef::rtrim(), and llvm::raw_ostream::write_escaped().
Referenced by llvm::object::Archive::Child::getAccessMode(), llvm::object::Archive::Child::getRawSize(), and llvm::object::Archive::Child::getSize().
|
inline |
Definition at line 66 of file Archive.h.
References Name, Size, and llvm::MCID::Terminator.
Referenced by llvm::object::Archive::Child::getName().
Definition at line 284 of file Archive.cpp.
References llvm::StringRef::data(), llvm::StringRef::empty(), llvm::raw_ostream::flush(), llvm::StringRef::getAsInteger(), llvm::object::Binary::getData(), malformedError(), llvm::MipsISD::Ret, llvm::StringRef::rtrim(), and llvm::raw_ostream::write_escaped().
Referenced by getRawLastModified(), and llvm::object::Archive::Child::getUID().
|
friend |
Definition at line 39 of file Archive.h.
Referenced by llvm::object::Archive::symbol_iterator::operator++().