LLVM 19.0.0git
Functions
ELFObjectFile.cpp File Reference
#include "llvm/Object/ELFObjectFile.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/MC/MCInstrAnalysis.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Object/ELF.h"
#include "llvm/Object/ELFTypes.h"
#include "llvm/Object/Error.h"
#include "llvm/Support/ARMAttributeParser.h"
#include "llvm/Support/ARMBuildAttributes.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/HexagonAttributeParser.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/RISCVAttributeParser.h"
#include "llvm/Support/RISCVAttributes.h"
#include "llvm/Support/RISCVISAInfo.h"
#include "llvm/TargetParser/SubtargetFeature.h"
#include "llvm/TargetParser/Triple.h"
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <memory>
#include <optional>
#include <string>
#include <utility>

Go to the source code of this file.

Functions

template<class ELFT >
static Expected< std::unique_ptr< ELFObjectFile< ELFT > > > createPtr (MemoryBufferRef Object, bool InitContent)
 
static std::optional< std::string > hexagonAttrToFeatureString (unsigned Attr)
 
template<class ELFT >
static Expected< std::vector< BBAddrMap > > readBBAddrMapImpl (const ELFFile< ELFT > &EF, std::optional< unsigned > TextSectionIndex, std::vector< PGOAnalysisMap > *PGOAnalyses)
 
template<class ELFT >
static Expected< std::vector< VersionEntry > > readDynsymVersionsImpl (const ELFFile< ELFT > &EF, ELFObjectFileBase::elf_symbol_iterator_range Symbols)
 

Function Documentation

◆ createPtr()

template<class ELFT >
static Expected< std::unique_ptr< ELFObjectFile< ELFT > > > createPtr ( MemoryBufferRef  Object,
bool  InitContent 
)
static

Definition at line 65 of file ELFObjectFile.cpp.

References llvm::object::ELFObjectFile< ELFT >::create().

◆ hexagonAttrToFeatureString()

static std::optional< std::string > hexagonAttrToFeatureString ( unsigned  Attr)
static

Definition at line 291 of file ELFObjectFile.cpp.

◆ readBBAddrMapImpl()

template<class ELFT >
static Expected< std::vector< BBAddrMap > > readBBAddrMapImpl ( const ELFFile< ELFT > &  EF,
std::optional< unsigned TextSectionIndex,
std::vector< PGOAnalysisMap > *  PGOAnalyses 
)
static

◆ readDynsymVersionsImpl()

template<class ELFT >
static Expected< std::vector< VersionEntry > > readDynsymVersionsImpl ( const ELFFile< ELFT > &  EF,
ELFObjectFileBase::elf_symbol_iterator_range  Symbols 
)
static