LLVM 20.0.0git
Classes | Typedefs | Functions | Variables
llvm::symbolize Namespace Reference

Classes

class  CachedBinary
 
class  DIPrinter
 
class  GNUPrinter
 
class  JSONPrinter
 
class  LLVMPrinter
 
class  LLVMSymbolizer
 
class  MarkupFilter
 Filter to convert parsed log symbolizer markup elements into human-readable text. More...
 
struct  MarkupNode
 A node of symbolizer markup. More...
 
class  MarkupParser
 Parses a log containing symbolizer markup into a sequence of nodes. More...
 
class  PlainPrinterBase
 
struct  PrinterConfig
 
struct  Request
 
class  SourceCode
 
class  SymbolizableModule
 
class  SymbolizableObjectFile
 

Typedefs

using ErrorHandler = std::function< void(const ErrorInfoBase &, StringRef)>
 
using FunctionNameKind = DILineInfoSpecifier::FunctionNameKind
 
using FileLineInfoKind = DILineInfoSpecifier::FileLineInfoKind
 

Functions

static std::string toHex (uint64_t V)
 
static json::Object toJSON (const Request &Request, StringRef ErrorMsg="")
 
static json::Object toJSON (const DILineInfo &LineInfo)
 
static StringRef takeTo (StringRef Str, StringRef::iterator Pos)
 
static void advanceTo (StringRef &Str, StringRef::iterator Pos)
 
static MarkupNode textNode (StringRef Text)
 
static StringRef getBuildIDStr (ArrayRef< uint8_t > BuildID)
 
static bool useBTFContext (const ObjectFile &Obj)
 

Variables

static const char SGRSyntaxStr [] = "\033\\[([0-1]|3[0-7])m"
 

Typedef Documentation

◆ ErrorHandler

using llvm::symbolize::ErrorHandler = typedef std::function<void(const ErrorInfoBase &, StringRef)>

Definition at line 68 of file DIPrinter.h.

◆ FileLineInfoKind

Definition at line 46 of file Symbolize.h.

◆ FunctionNameKind

Definition at line 21 of file SymbolizableModule.h.

Function Documentation

◆ advanceTo()

static void llvm::symbolize::advanceTo ( StringRef Str,
StringRef::iterator  Pos 
)
static

Definition at line 33 of file Markup.cpp.

Referenced by llvm::symbolize::MarkupParser::nextNode().

◆ getBuildIDStr()

static StringRef llvm::symbolize::getBuildIDStr ( ArrayRef< uint8_t BuildID)
static

◆ takeTo()

static StringRef llvm::symbolize::takeTo ( StringRef  Str,
StringRef::iterator  Pos 
)
static

Definition at line 30 of file Markup.cpp.

Referenced by llvm::symbolize::MarkupParser::nextNode().

◆ textNode()

static MarkupNode llvm::symbolize::textNode ( StringRef  Text)
static

Definition at line 144 of file Markup.cpp.

◆ toHex()

static std::string llvm::symbolize::toHex ( uint64_t  V)
static

Definition at line 288 of file DIPrinter.cpp.

References llvm::Twine::utohexstr().

Referenced by llvm::symbolize::JSONPrinter::print(), and toJSON().

◆ toJSON() [1/2]

static json::Object llvm::symbolize::toJSON ( const DILineInfo LineInfo)
static

◆ toJSON() [2/2]

static json::Object llvm::symbolize::toJSON ( const Request Request,
StringRef  ErrorMsg = "" 
)
static

◆ useBTFContext()

static bool llvm::symbolize::useBTFContext ( const ObjectFile Obj)
static

Variable Documentation

◆ SGRSyntaxStr

const char llvm::symbolize::SGRSyntaxStr[] = "\033\\[([0-1]|3[0-7])m"
static

Definition at line 25 of file Markup.cpp.