13#ifndef LLVM_OBJECT_ARCHIVEWRITER_H
14#define LLVM_OBJECT_ARCHIVEWRITER_H
21 std::unique_ptr<MemoryBuffer>
Buf;
55 ArrayRef<NewArchiveMember> NewMembers,
58 bool Thin, std::optional<bool> IsEC = std::nullopt,
61Error
writeArchive(StringRef ArcName, ArrayRef<NewArchiveMember> NewMembers,
63 bool Deterministic,
bool Thin,
64 std::unique_ptr<MemoryBuffer> OldArchiveBuf =
nullptr,
65 std::optional<bool> IsEC = std::nullopt,
70Expected<std::unique_ptr<MemoryBuffer>>
73 bool Deterministic,
bool Thin,
BlockVerifier::State From
Tagged union holding either a T or a Error.
StringRef - Represent a constant reference to a string, i.e.
std::chrono::time_point< std::chrono::system_clock, D > TimePoint
A time point on the system clock.
This is an optimization pass for GlobalISel generic memory operations.
Expected< std::unique_ptr< MemoryBuffer > > writeArchiveToBuffer(ArrayRef< NewArchiveMember > NewMembers, SymtabWritingMode WriteSymtab, object::Archive::Kind Kind, bool Deterministic, bool Thin, function_ref< void(Error)> Warn=warnToStderr)
Error writeArchive(StringRef ArcName, ArrayRef< NewArchiveMember > NewMembers, SymtabWritingMode WriteSymtab, object::Archive::Kind Kind, bool Deterministic, bool Thin, std::unique_ptr< MemoryBuffer > OldArchiveBuf=nullptr, std::optional< bool > IsEC=std::nullopt, function_ref< void(Error)> Warn=warnToStderr)
void warnToStderr(Error Err)
Expected< std::string > computeArchiveRelativePath(StringRef From, StringRef To)
Error writeArchiveToStream(raw_ostream &Out, ArrayRef< NewArchiveMember > NewMembers, SymtabWritingMode WriteSymtab, object::Archive::Kind Kind, bool Deterministic, bool Thin, std::optional< bool > IsEC=std::nullopt, function_ref< void(Error)> Warn=warnToStderr)
sys::TimePoint< std::chrono::seconds > ModTime
object::Archive::Kind detectKindFromObject() const
NewArchiveMember()=default
static Expected< NewArchiveMember > getFile(StringRef FileName, bool Deterministic)
static Expected< NewArchiveMember > getOldMember(const object::Archive::Child &OldMember, bool Deterministic)
std::unique_ptr< MemoryBuffer > Buf