LLVM 17.0.0git
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/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>
Include dependency graph for Archive.cpp:

Go to the source code of this file.

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)
 

Function Documentation

◆ 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])

◆ malformedError()

static Error malformedError ( Twine  Msg)
static