LLVM 22.0.0git
llvm::BTFContext Class Referencefinal

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

Inheritance diagram for llvm::BTFContext:
[legend]

Public Member Functions

 BTFContext ()
void dump (raw_ostream &OS, DIDumpOptions DumpOpts) override
std::optional< DILineInfogetLineInfoForAddress (object::SectionedAddress Address, DILineInfoSpecifier Specifier=DILineInfoSpecifier()) override
std::optional< DILineInfogetLineInfoForDataAddress (object::SectionedAddress Address) override
DILineInfoTable getLineInfoForAddressRange (object::SectionedAddress Address, uint64_t Size, DILineInfoSpecifier Specifier=DILineInfoSpecifier()) override
DIInliningInfo getInliningInfoForAddress (object::SectionedAddress Address, DILineInfoSpecifier Specifier=DILineInfoSpecifier()) override
std::vector< DILocalgetLocalsForAddress (object::SectionedAddress Address) override
Public Member Functions inherited from llvm::DIContext
 DIContext (DIContextKind K)
virtual ~DIContext ()=default
DIContextKind getKind () const
virtual bool verify (raw_ostream &OS, DIDumpOptions DumpOpts={})

Static Public Member Functions

static std::unique_ptr< BTFContextcreate (const object::ObjectFile &Obj, std::function< void(Error)> ErrorHandler=WithColor::defaultErrorHandler)

Additional Inherited Members

Public Types inherited from llvm::DIContext
enum  DIContextKind { CK_DWARF , CK_PDB , CK_BTF , CK_GSYM }

Detailed Description

Definition at line 23 of file BTFContext.h.

Constructor & Destructor Documentation

◆ BTFContext()

llvm::BTFContext::BTFContext ( )
inline

Definition at line 27 of file BTFContext.h.

References llvm::DIContext::CK_BTF, and llvm::DIContext::DIContext().

Member Function Documentation

◆ create()

std::unique_ptr< BTFContext > BTFContext::create ( const object::ObjectFile & Obj,
std::function< void(Error)> ErrorHandler = WithColor::defaultErrorHandler )
static

Definition at line 65 of file BTFContext.cpp.

References ErrorHandler, and llvm::BTFParser::ParseOptions::LoadLines.

◆ dump()

void llvm::BTFContext::dump ( raw_ostream & OS,
DIDumpOptions DumpOpts )
inlineoverridevirtual

Implements llvm::DIContext.

Definition at line 29 of file BTFContext.h.

◆ getInliningInfoForAddress()

DIInliningInfo BTFContext::getInliningInfoForAddress ( object::SectionedAddress Address,
DILineInfoSpecifier Specifier = DILineInfoSpecifier() )
overridevirtual

Implements llvm::DIContext.

Definition at line 53 of file BTFContext.cpp.

References llvm::Address.

◆ getLineInfoForAddress()

std::optional< DILineInfo > BTFContext::getLineInfoForAddress ( object::SectionedAddress Address,
DILineInfoSpecifier Specifier = DILineInfoSpecifier() )
overridevirtual

Implements llvm::DIContext.

Definition at line 24 of file BTFContext.cpp.

References llvm::Address.

◆ getLineInfoForAddressRange()

DILineInfoTable BTFContext::getLineInfoForAddressRange ( object::SectionedAddress Address,
uint64_t Size,
DILineInfoSpecifier Specifier = DILineInfoSpecifier() )
overridevirtual

Implements llvm::DIContext.

Definition at line 45 of file BTFContext.cpp.

References llvm::Address, and Size.

◆ getLineInfoForDataAddress()

std::optional< DILineInfo > BTFContext::getLineInfoForDataAddress ( object::SectionedAddress Address)
overridevirtual

Implements llvm::DIContext.

Definition at line 39 of file BTFContext.cpp.

References llvm::Address.

◆ getLocalsForAddress()

std::vector< DILocal > BTFContext::getLocalsForAddress ( object::SectionedAddress Address)
overridevirtual

Implements llvm::DIContext.

Definition at line 59 of file BTFContext.cpp.

References llvm::Address.


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