LLVM 22.0.0git
llvm::symbolize::SourceCode Class Reference

Public Member Functions

 SourceCode (StringRef FileName, int64_t Line, int Lines, const std::optional< StringRef > &EmbeddedSource=std::optional< StringRef >())
void format (raw_ostream &OS)

Public Attributes

const int64_t Line
const int Lines
const int64_t FirstLine
const int64_t LastLine
const std::optional< StringRefPrunedSource

Detailed Description

Definition at line 31 of file DIPrinter.cpp.

Constructor & Destructor Documentation

◆ SourceCode()

llvm::symbolize::SourceCode::SourceCode ( StringRef FileName,
int64_t Line,
int Lines,
const std::optional< StringRef > & EmbeddedSource = std::optional<StringRef>() )
inline

Definition at line 76 of file DIPrinter.cpp.

References FirstLine, LastLine, Line, Lines, llvm::max(), and PrunedSource.

Member Function Documentation

◆ format()

void llvm::symbolize::SourceCode::format ( raw_ostream & OS)
inline

Member Data Documentation

◆ FirstLine

const int64_t llvm::symbolize::SourceCode::FirstLine

Definition at line 72 of file DIPrinter.cpp.

Referenced by format(), and SourceCode().

◆ LastLine

const int64_t llvm::symbolize::SourceCode::LastLine

Definition at line 73 of file DIPrinter.cpp.

Referenced by format(), and SourceCode().

◆ Line

const int64_t llvm::symbolize::SourceCode::Line

Definition at line 70 of file DIPrinter.cpp.

Referenced by format(), and SourceCode().

◆ Lines

const int llvm::symbolize::SourceCode::Lines

Definition at line 71 of file DIPrinter.cpp.

Referenced by SourceCode().

◆ PrunedSource

const std::optional<StringRef> llvm::symbolize::SourceCode::PrunedSource

Definition at line 74 of file DIPrinter.cpp.

Referenced by format(), and SourceCode().


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