LLVM 22.0.0git
llvm::BTFParser Class Reference

#include "llvm/DebugInfo/BTF/BTFParser.h"

Classes

struct  ParseContext
struct  ParseOptions

Public Member Functions

LLVM_ABI StringRef findString (uint32_t Offset) const
LLVM_ABI const BTF::BPFLineInfofindLineInfo (SectionedAddress Address) const
LLVM_ABI const BTF::BPFFieldRelocfindFieldReloc (SectionedAddress Address) const
LLVM_ABI void symbolize (const BTF::BPFFieldReloc *Reloc, SmallVectorImpl< char > &Result) const
LLVM_ABI const BTF::CommonTypefindType (uint32_t Id) const
size_t typesCount () const
LLVM_ABI Error parse (const ObjectFile &Obj, const ParseOptions &Opts)
Error parse (const ObjectFile &Obj)

Static Public Member Functions

static LLVM_ABI bool hasBTFSections (const ObjectFile &Obj)

Detailed Description

Definition at line 36 of file BTFParser.h.

Member Function Documentation

◆ findFieldReloc()

const BTF::BPFFieldReloc * BTFParser::findFieldReloc ( SectionedAddress Address) const

Definition at line 454 of file BTFParser.cpp.

References llvm::Address, and findInfo().

◆ findLineInfo()

const BTF::BPFLineInfo * BTFParser::findLineInfo ( SectionedAddress Address) const

Definition at line 449 of file BTFParser.cpp.

References llvm::Address, and findInfo().

◆ findString()

StringRef BTFParser::findString ( uint32_t Offset) const

Definition at line 427 of file BTFParser.cpp.

References llvm::Offset, and llvm::StringRef::slice().

Referenced by symbolize().

◆ findType()

const BTF::CommonType * BTFParser::findType ( uint32_t Id) const

Definition at line 458 of file BTFParser.cpp.

Referenced by symbolize().

◆ hasBTFSections()

bool BTFParser::hasBTFSections ( const ObjectFile & Obj)
static

◆ parse() [1/2]

Error llvm::BTFParser::parse ( const ObjectFile & Obj)
inline

Definition at line 126 of file BTFParser.h.

References parse().

Referenced by parse().

◆ parse() [2/2]

◆ symbolize()

◆ typesCount()

size_t llvm::BTFParser::typesCount ( ) const
inline

Definition at line 107 of file BTFParser.h.


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