LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::NewArchiveMember Struct Reference

#include "llvm/Object/ArchiveWriter.h"

Public Member Functions

 NewArchiveMember ()=default
 
 NewArchiveMember (MemoryBufferRef BufRef)
 
object::Archive::Kind detectKindFromObject () const
 

Static Public Member Functions

static Expected< NewArchiveMembergetOldMember (const object::Archive::Child &OldMember, bool Deterministic)
 
static Expected< NewArchiveMembergetFile (StringRef FileName, bool Deterministic)
 

Public Attributes

std::unique_ptr< MemoryBufferBuf
 
StringRef MemberName
 
sys::TimePoint< std::chrono::seconds > ModTime
 
unsigned UID = 0
 
unsigned GID = 0
 
unsigned Perms = 0644
 

Detailed Description

Definition at line 20 of file ArchiveWriter.h.

Constructor & Destructor Documentation

◆ NewArchiveMember() [1/2]

llvm::NewArchiveMember::NewArchiveMember ( )
default

◆ NewArchiveMember() [2/2]

NewArchiveMember::NewArchiveMember ( MemoryBufferRef  BufRef)

Definition at line 56 of file ArchiveWriter.cpp.

Member Function Documentation

◆ detectKindFromObject()

object::Archive::Kind NewArchiveMember::detectKindFromObject ( ) const

◆ getFile()

Expected< NewArchiveMember > NewArchiveMember::getFile ( StringRef  FileName,
bool  Deterministic 
)
static

◆ getOldMember()

Expected< NewArchiveMember > NewArchiveMember::getOldMember ( const object::Archive::Child OldMember,
bool  Deterministic 
)
static

Member Data Documentation

◆ Buf

std::unique_ptr<MemoryBuffer> llvm::NewArchiveMember::Buf

Definition at line 21 of file ArchiveWriter.h.

Referenced by detectKindFromObject(), and getDefaultOutputPath().

◆ GID

unsigned llvm::NewArchiveMember::GID = 0

Definition at line 24 of file ArchiveWriter.h.

◆ MemberName

StringRef llvm::NewArchiveMember::MemberName

Definition at line 22 of file ArchiveWriter.h.

◆ ModTime

sys::TimePoint<std::chrono::seconds> llvm::NewArchiveMember::ModTime

Definition at line 23 of file ArchiveWriter.h.

◆ Perms

unsigned llvm::NewArchiveMember::Perms = 0644

Definition at line 24 of file ArchiveWriter.h.

◆ UID

unsigned llvm::NewArchiveMember::UID = 0

Definition at line 24 of file ArchiveWriter.h.


The documentation for this struct was generated from the following files: