LLVM 20.0.0git
Public Member Functions | List of all members
llvm::object::Archive::Child Class Reference

#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)
 
 Child (const Child &C)
 
 Child (Child &&C)
 
Childoperator= (Child &&C) noexcept
 
Childoperator= (const Child &C)
 
bool operator== (const Child &other) const
 
const ArchivegetParent () const
 
Expected< ChildgetNext () const
 
Expected< StringRefgetName () const
 
Expected< std::string > getFullName () const
 
Expected< StringRefgetRawName () const
 
Expected< sys::TimePoint< std::chrono::seconds > > getLastModified () const
 
StringRef getRawLastModified () const
 
Expected< unsignedgetUID () const
 
Expected< unsignedgetGID () const
 
Expected< sys::fs::permsgetAccessMode () const
 
Expected< uint64_tgetSize () const
 
Expected< uint64_tgetRawSize () const
 
Expected< StringRefgetBuffer () const
 
uint64_t getChildOffset () const
 
uint64_t getDataOffset () const
 
Expected< MemoryBufferRefgetMemoryBufferRef () const
 
Expected< std::unique_ptr< Binary > > getAsBinary (LLVMContext *Context=nullptr) const
 

Detailed Description

Definition at line 160 of file Archive.h.

Constructor & Destructor Documentation

◆ Child() [1/4]

Archive::Child::Child ( const Archive Parent,
const char Start,
Error Err 
)

◆ Child() [2/4]

Archive::Child::Child ( const Archive Parent,
StringRef  Data,
uint16_t  StartOfFile 
)

Definition at line 461 of file Archive.cpp.

References llvm::object::Archive::createArchiveMemberHeader().

◆ Child() [3/4]

llvm::object::Archive::Child::Child ( const Child C)
inline

Definition at line 177 of file Archive.h.

References llvm::CallingConv::C.

◆ Child() [4/4]

llvm::object::Archive::Child::Child ( Child &&  C)
inline

Definition at line 183 of file Archive.h.

References llvm::CallingConv::C.

Member Function Documentation

◆ getAccessMode()

Expected< sys::fs::perms > llvm::object::Archive::Child::getAccessMode ( ) const
inline

Definition at line 238 of file Archive.h.

Referenced by llvm::NewArchiveMember::getOldMember().

◆ getAsBinary()

Expected< std::unique_ptr< Binary > > Archive::Child::getAsBinary ( LLVMContext Context = nullptr) const

◆ getBuffer()

Expected< StringRef > Archive::Child::getBuffer ( ) const

◆ getChildOffset()

uint64_t Archive::Child::getChildOffset ( ) const

Definition at line 625 of file Archive.cpp.

References llvm::object::Binary::Data.

Referenced by getDataOffset().

◆ getDataOffset()

uint64_t llvm::object::Archive::Child::getDataOffset ( ) const
inline

Definition at line 249 of file Archive.h.

References getChildOffset().

◆ getFullName()

Expected< std::string > Archive::Child::getFullName ( ) const

◆ getGID()

Expected< unsigned > llvm::object::Archive::Child::getGID ( ) const
inline

Definition at line 236 of file Archive.h.

Referenced by llvm::NewArchiveMember::getOldMember().

◆ getLastModified()

Expected< sys::TimePoint< std::chrono::seconds > > llvm::object::Archive::Child::getLastModified ( ) const
inline

Definition at line 227 of file Archive.h.

Referenced by llvm::NewArchiveMember::getOldMember().

◆ getMemoryBufferRef()

Expected< MemoryBufferRef > Archive::Child::getMemoryBufferRef ( ) const

◆ getName()

Expected< StringRef > Archive::Child::getName ( ) const

Definition at line 632 of file Archive.cpp.

References llvm::Expected< T >::get(), Name, and llvm::Expected< T >::takeError().

◆ getNext()

Expected< Archive::Child > Archive::Child::getNext ( ) const

◆ getParent()

const Archive * llvm::object::Archive::Child::getParent ( ) const
inline

Definition at line 220 of file Archive.h.

◆ getRawLastModified()

StringRef llvm::object::Archive::Child::getRawLastModified ( ) const
inline

Definition at line 231 of file Archive.h.

◆ getRawName()

Expected< StringRef > llvm::object::Archive::Child::getRawName ( ) const
inline

Definition at line 225 of file Archive.h.

Referenced by Child().

◆ getRawSize()

Expected< uint64_t > Archive::Child::getRawSize ( ) const
Returns
the size in the archive header for this member.

Definition at line 548 of file Archive.cpp.

Referenced by Child().

◆ getSize()

Expected< uint64_t > Archive::Child::getSize ( ) const
Returns
the size of the archive member without the header or padding.

Definition at line 542 of file Archive.cpp.

References llvm::object::Binary::Data.

◆ getUID()

Expected< unsigned > llvm::object::Archive::Child::getUID ( ) const
inline

Definition at line 235 of file Archive.h.

Referenced by llvm::NewArchiveMember::getOldMember().

◆ operator=() [1/2]

Child & llvm::object::Archive::Child::operator= ( Child &&  C)
inlinenoexcept

Definition at line 190 of file Archive.h.

References llvm::CallingConv::C.

◆ operator=() [2/2]

Child & llvm::object::Archive::Child::operator= ( const Child C)
inline

Definition at line 202 of file Archive.h.

References llvm::CallingConv::C.

◆ operator==()

bool llvm::object::Archive::Child::operator== ( const Child other) const
inline

Definition at line 215 of file Archive.h.

References assert(), and llvm::StringRef::begin().


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