LLVM 20.0.0git
Classes | Functions
Archive.cpp File Reference
#include "llvm/Object/Archive.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Object/Binary.h"
#include "llvm/Object/Error.h"
#include "llvm/Support/Chrono.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/EndianStream.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/TargetParser/Host.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <string>
#include <system_error>

Go to the source code of this file.

Classes

struct  GlobalSymtabInfo
 

Functions

static Error malformedError (Twine Msg)
 
static Error createMemberHeaderParseError (const AbstractArchiveMemberHeader *ArMemHeader, const char *RawHeaderPtr, uint64_t Size)
 
template<class T , std::size_t N>
StringRef getFieldRawString (const T(&Field)[N])
 
Expected< uint64_tgetArchiveMemberDecField (Twine FieldName, const StringRef RawField, const Archive *Parent, const AbstractArchiveMemberHeader *MemHeader)
 
Expected< uint64_tgetArchiveMemberOctField (Twine FieldName, const StringRef RawField, const Archive *Parent, const AbstractArchiveMemberHeader *MemHeader)
 
static Error getGlobalSymtabLocAndSize (const MemoryBufferRef &Data, uint64_t GlobalSymtabOffset, const char *&GlobalSymtabLoc, uint64_t &Size, const char *BitMessage)
 
static void appendGlobalSymbolTableInfo (SmallVector< GlobalSymtabInfo > &SymtabInfos, const char *GlobalSymtabLoc, uint64_t Size)
 

Function Documentation

◆ appendGlobalSymbolTableInfo()

static void appendGlobalSymbolTableInfo ( SmallVector< GlobalSymtabInfo > &  SymtabInfos,
const char GlobalSymtabLoc,
uint64_t  Size 
)
static

◆ createMemberHeaderParseError()

static Error createMemberHeaderParseError ( const AbstractArchiveMemberHeader ArMemHeader,
const char RawHeaderPtr,
uint64_t  Size 
)
static

◆ getArchiveMemberDecField()

Expected< uint64_t > getArchiveMemberDecField ( Twine  FieldName,
const StringRef  RawField,
const Archive Parent,
const AbstractArchiveMemberHeader MemHeader 
)

◆ getArchiveMemberOctField()

Expected< uint64_t > getArchiveMemberOctField ( Twine  FieldName,
const StringRef  RawField,
const Archive Parent,
const AbstractArchiveMemberHeader MemHeader 
)

◆ getFieldRawString()

template<class T , std::size_t N>
StringRef getFieldRawString ( const T(&)  Field[N])

◆ getGlobalSymtabLocAndSize()

static Error getGlobalSymtabLocAndSize ( const MemoryBufferRef Data,
uint64_t  GlobalSymtabOffset,
const char *&  GlobalSymtabLoc,
uint64_t Size,
const char BitMessage 
)
static

◆ malformedError()

static Error malformedError ( Twine  Msg)
static