LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::BTFContext Class Referencefinal

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

Inheritance diagram for llvm::BTFContext:
Inheritance graph
[legend]

Public Member Functions

 BTFContext ()
 
void dump (raw_ostream &OS, DIDumpOptions DumpOpts) override
 
DILineInfo getLineInfoForAddress (object::SectionedAddress Address, DILineInfoSpecifier Specifier=DILineInfoSpecifier()) override
 
DILineInfo getLineInfoForDataAddress (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 void dump (raw_ostream &OS, DIDumpOptions DumpOpts)=0
 
virtual bool verify (raw_ostream &OS, DIDumpOptions DumpOpts={})
 
virtual DILineInfo getLineInfoForAddress (object::SectionedAddress Address, DILineInfoSpecifier Specifier=DILineInfoSpecifier())=0
 
virtual DILineInfo getLineInfoForDataAddress (object::SectionedAddress Address)=0
 
virtual DILineInfoTable getLineInfoForAddressRange (object::SectionedAddress Address, uint64_t Size, DILineInfoSpecifier Specifier=DILineInfoSpecifier())=0
 
virtual DIInliningInfo getInliningInfoForAddress (object::SectionedAddress Address, DILineInfoSpecifier Specifier=DILineInfoSpecifier())=0
 
virtual std::vector< DILocalgetLocalsForAddress (object::SectionedAddress Address)=0
 

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 }
 

Detailed Description

Definition at line 22 of file BTFContext.h.

Constructor & Destructor Documentation

◆ BTFContext()

llvm::BTFContext::BTFContext ( )
inline

Definition at line 26 of file BTFContext.h.

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 63 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 28 of file BTFContext.h.

◆ getInliningInfoForAddress()

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

Implements llvm::DIContext.

Definition at line 51 of file BTFContext.cpp.

◆ getLineInfoForAddress()

DILineInfo BTFContext::getLineInfoForAddress ( object::SectionedAddress  Address,
DILineInfoSpecifier  Specifier = DILineInfoSpecifier() 
)
overridevirtual

◆ getLineInfoForAddressRange()

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

Implements llvm::DIContext.

Definition at line 43 of file BTFContext.cpp.

◆ getLineInfoForDataAddress()

DILineInfo BTFContext::getLineInfoForDataAddress ( object::SectionedAddress  Address)
overridevirtual

Implements llvm::DIContext.

Definition at line 37 of file BTFContext.cpp.

◆ getLocalsForAddress()

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

Implements llvm::DIContext.

Definition at line 57 of file BTFContext.cpp.


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