LLVM 20.0.0git
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
llvm::symbolize::PlainPrinterBase Class Referenceabstract

#include "llvm/DebugInfo/Symbolize/DIPrinter.h"

Inheritance diagram for llvm::symbolize::PlainPrinterBase:
Inheritance graph
[legend]

Public Member Functions

 PlainPrinterBase (raw_ostream &OS, ErrorHandler EH, PrinterConfig &Config)
 
void print (const Request &Request, const DILineInfo &Info) override
 
void print (const Request &Request, const DIInliningInfo &Info) override
 
void print (const Request &Request, const DIGlobal &Global) override
 
void print (const Request &Request, const std::vector< DILocal > &Locals) override
 
void print (const Request &Request, const std::vector< DILineInfo > &Locations) override
 
bool printError (const Request &Request, const ErrorInfoBase &ErrorInfo) override
 
void listBegin () override
 
void listEnd () override
 
- Public Member Functions inherited from llvm::symbolize::DIPrinter
 DIPrinter ()=default
 
virtual ~DIPrinter ()=default
 
virtual void print (const Request &Request, const DILineInfo &Info)=0
 
virtual void print (const Request &Request, const DIInliningInfo &Info)=0
 
virtual void print (const Request &Request, const DIGlobal &Global)=0
 
virtual void print (const Request &Request, const std::vector< DILocal > &Locals)=0
 
virtual void print (const Request &Request, const std::vector< DILineInfo > &Locations)=0
 
virtual bool printError (const Request &Request, const ErrorInfoBase &ErrorInfo)=0
 
virtual void listBegin ()=0
 
virtual void listEnd ()=0
 

Protected Member Functions

void print (const DILineInfo &Info, bool Inlined)
 
void printFunctionName (StringRef FunctionName, bool Inlined)
 
virtual void printSimpleLocation (StringRef Filename, const DILineInfo &Info)=0
 
void printContext (SourceCode SourceCode)
 
void printVerbose (StringRef Filename, const DILineInfo &Info)
 
virtual void printStartAddress (const DILineInfo &Info)
 
virtual void printFooter ()
 

Protected Attributes

raw_ostreamOS
 
ErrorHandler ErrHandler
 
PrinterConfig Config
 

Detailed Description

Definition at line 70 of file DIPrinter.h.

Constructor & Destructor Documentation

◆ PlainPrinterBase()

llvm::symbolize::PlainPrinterBase::PlainPrinterBase ( raw_ostream OS,
ErrorHandler  EH,
PrinterConfig Config 
)
inline

Definition at line 89 of file DIPrinter.h.

Member Function Documentation

◆ listBegin()

void llvm::symbolize::PlainPrinterBase::listBegin ( )
inlineoverridevirtual

Implements llvm::symbolize::DIPrinter.

Definition at line 103 of file DIPrinter.h.

◆ listEnd()

void llvm::symbolize::PlainPrinterBase::listEnd ( )
inlineoverridevirtual

Implements llvm::symbolize::DIPrinter.

Definition at line 104 of file DIPrinter.h.

◆ print() [1/6]

void llvm::symbolize::PlainPrinterBase::print ( const DILineInfo Info,
bool  Inlined 
)
protected

◆ print() [2/6]

void llvm::symbolize::PlainPrinterBase::print ( const Request Request,
const DIGlobal Global 
)
overridevirtual

◆ print() [3/6]

void llvm::symbolize::PlainPrinterBase::print ( const Request Request,
const DIInliningInfo Info 
)
overridevirtual

Implements llvm::symbolize::DIPrinter.

Definition at line 197 of file DIPrinter.cpp.

References llvm::symbolize::Request::Address, I, Info, print(), and printFooter().

◆ print() [4/6]

void llvm::symbolize::PlainPrinterBase::print ( const Request Request,
const DILineInfo Info 
)
overridevirtual

Implements llvm::symbolize::DIPrinter.

Definition at line 191 of file DIPrinter.cpp.

References llvm::symbolize::Request::Address, Info, print(), and printFooter().

◆ print() [5/6]

void llvm::symbolize::PlainPrinterBase::print ( const Request Request,
const std::vector< DILineInfo > &  Locations 
)
overridevirtual

Implements llvm::symbolize::DIPrinter.

Definition at line 270 of file DIPrinter.cpp.

References print(), and printFooter().

◆ print() [6/6]

void llvm::symbolize::PlainPrinterBase::print ( const Request Request,
const std::vector< DILocal > &  Locals 
)
overridevirtual

◆ printContext()

void llvm::symbolize::PlainPrinterBase::printContext ( SourceCode  SourceCode)
protected

Definition at line 118 of file DIPrinter.cpp.

References llvm::symbolize::SourceCode::format(), and OS.

◆ printError()

bool llvm::symbolize::PlainPrinterBase::printError ( const Request Request,
const ErrorInfoBase ErrorInfo 
)
overridevirtual

Implements llvm::symbolize::DIPrinter.

Definition at line 281 of file DIPrinter.cpp.

References ErrHandler, and llvm::symbolize::Request::ModuleName.

◆ printFooter()

virtual void llvm::symbolize::PlainPrinterBase::printFooter ( )
inlineprotectedvirtual

Definition at line 83 of file DIPrinter.h.

Referenced by print().

◆ printFunctionName()

void llvm::symbolize::PlainPrinterBase::printFunctionName ( StringRef  FunctionName,
bool  Inlined 
)
protected

◆ printSimpleLocation()

virtual void llvm::symbolize::PlainPrinterBase::printSimpleLocation ( StringRef  Filename,
const DILineInfo Info 
)
protectedpure virtual

Referenced by print().

◆ printStartAddress()

virtual void llvm::symbolize::PlainPrinterBase::printStartAddress ( const DILineInfo Info)
inlineprotectedvirtual

Definition at line 82 of file DIPrinter.h.

Referenced by printVerbose().

◆ printVerbose()

void llvm::symbolize::PlainPrinterBase::printVerbose ( StringRef  Filename,
const DILineInfo Info 
)
protected

Definition at line 154 of file DIPrinter.cpp.

References Info, OS, and printStartAddress().

Referenced by print().

Member Data Documentation

◆ Config

PrinterConfig llvm::symbolize::PlainPrinterBase::Config
protected

Definition at line 74 of file DIPrinter.h.

Referenced by print(), and printFunctionName().

◆ ErrHandler

ErrorHandler llvm::symbolize::PlainPrinterBase::ErrHandler
protected

Definition at line 73 of file DIPrinter.h.

Referenced by printError().

◆ OS

raw_ostream& llvm::symbolize::PlainPrinterBase::OS
protected

Definition at line 72 of file DIPrinter.h.

Referenced by print(), printContext(), printFunctionName(), and printVerbose().


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