LLVM 19.0.0git
Classes | Public Member Functions | Static Public Member Functions | List of all members
llvm::BTFParser Class Reference

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


struct  ParseContext
struct  ParseOptions

Public Member Functions

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

Static Public Member Functions

static bool hasBTFSections (const ObjectFile &Obj)

Detailed Description

Definition at line 35 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().

Referenced by llvm::BTFContext::getLineInfoForAddress().

◆ findString()

StringRef BTFParser::findString ( uint32_t  Offset) const

◆ findType()

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

Definition at line 458 of file BTFParser.cpp.

Referenced by skipModsAndTypedefs(), and symbolize().

◆ hasBTFSections()

bool BTFParser::hasBTFSections ( const ObjectFile Obj)

◆ parse() [1/2]

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

Definition at line 124 of file BTFParser.h.

References parse().

Referenced by parse().

◆ parse() [2/2]

Error BTFParser::parse ( const ObjectFile Obj,
const ParseOptions Opts 

◆ symbolize()

void BTFParser::symbolize ( const BTF::BPFFieldReloc Reloc,
SmallVectorImpl< char > &  Result 
) const

◆ typesCount()

size_t llvm::BTFParser::typesCount ( ) const

Definition at line 105 of file BTFParser.h.

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