LLVM
8.0.1
|
#include "llvm/Object/ArchiveWriter.h"
Public Member Functions | |
NewArchiveMember ()=default | |
NewArchiveMember (MemoryBufferRef BufRef) | |
Static Public Member Functions | |
static Expected< NewArchiveMember > | getOldMember (const object::Archive::Child &OldMember, bool Deterministic) |
static Expected< NewArchiveMember > | getFile (StringRef FileName, bool Deterministic) |
Public Attributes | |
std::unique_ptr< MemoryBuffer > | Buf |
StringRef | MemberName |
sys::TimePoint< std::chrono::seconds > | ModTime |
unsigned | UID = 0 |
unsigned | GID = 0 |
unsigned | Perms = 0644 |
bool | IsNew = false |
Definition at line 24 of file ArchiveWriter.h.
|
default |
NewArchiveMember::NewArchiveMember | ( | MemoryBufferRef | BufRef | ) |
Definition at line 40 of file ArchiveWriter.cpp.
|
static |
Definition at line 76 of file ArchiveWriter.cpp.
References assert(), Buf, llvm::sys::fs::directory_file, llvm::errorCodeToError(), llvm::ErrorOr< T >::getError(), llvm::sys::fs::basic_file_status::getGroup(), llvm::sys::fs::basic_file_status::getLastModificationTime(), llvm::MemoryBuffer::getOpenFile(), llvm::sys::fs::basic_file_status::getSize(), llvm::sys::fs::basic_file_status::getUser(), GID, llvm::is_a_directory, IsNew, llvm::make_error_code(), MemberName, ModTime, llvm::sys::fs::openFileForRead(), llvm::sys::fs::basic_file_status::permissions(), Perms, llvm::sys::fs::status(), llvm::sys::fs::basic_file_status::type(), and UID.
|
static |
Definition at line 45 of file ArchiveWriter.cpp.
References assert(), Buf, llvm::Expected< T >::get(), llvm::object::Archive::Child::getAccessMode(), llvm::object::Archive::Child::getGID(), llvm::object::Archive::Child::getLastModified(), llvm::MemoryBuffer::getMemBuffer(), llvm::object::Archive::Child::getMemoryBufferRef(), llvm::object::Archive::Child::getUID(), GID, IsNew, MemberName, ModTime, Perms, llvm::Expected< T >::takeError(), and UID.
std::unique_ptr<MemoryBuffer> llvm::NewArchiveMember::Buf |
Definition at line 25 of file ArchiveWriter.h.
Referenced by addToStringTable(), computeMemberData(), getFile(), getOldMember(), and getOutputPath().
unsigned llvm::NewArchiveMember::GID = 0 |
Definition at line 28 of file ArchiveWriter.h.
Referenced by getFile(), getOldMember(), and printMemberHeader().
Definition at line 30 of file ArchiveWriter.h.
Referenced by addToStringTable(), getFile(), and getOldMember().
StringRef llvm::NewArchiveMember::MemberName |
Definition at line 26 of file ArchiveWriter.h.
Referenced by addToStringTable(), getFile(), getOldMember(), and printMemberHeader().
sys::TimePoint<std::chrono::seconds> llvm::NewArchiveMember::ModTime |
Definition at line 27 of file ArchiveWriter.h.
Referenced by computeMemberData(), getFile(), and getOldMember().
unsigned llvm::NewArchiveMember::Perms = 0644 |
Definition at line 28 of file ArchiveWriter.h.
Referenced by getFile(), getOldMember(), and printMemberHeader().
unsigned llvm::NewArchiveMember::UID = 0 |
Definition at line 28 of file ArchiveWriter.h.
Referenced by getFile(), getOldMember(), and printMemberHeader().