class SourceCode

Declaration

class SourceCode { /* full declaration omitted */ };

Declared at: llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp:31

Member Variables

private std::unique_ptr<MemoryBuffer> MemBuf
public const int64_t Line
public const int Lines
public const int64_t FirstLine
public const int64_t LastLine
public const Optional<llvm::StringRef> PrunedSource

Method Overview

  • public SourceCode(llvm::StringRef FileName, int64_t Line, int Lines, const Optional<llvm::StringRef> & EmbeddedSource = llvm::Optional<llvm::StringRef>(None))
  • public void format(llvm::raw_ostream & OS)
  • private Optional<llvm::StringRef> load(llvm::StringRef FileName, const Optional<llvm::StringRef> & EmbeddedSource)
  • private Optional<llvm::StringRef> pruneSource(const Optional<llvm::StringRef> & Source)

Methods

SourceCode(
    llvm::StringRef FileName,
    int64_t Line,
    int Lines,
    const Optional<llvm::StringRef>&
        EmbeddedSource =
            llvm::Optional<llvm::StringRef>(None))

Declared at: llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp:76

Parameters

llvm::StringRef FileName
int64_t Line
int Lines
const Optional<llvm::StringRef>& EmbeddedSource = llvm::Optional<llvm::StringRef>(None)

void format(llvm::raw_ostream& OS)

Declared at: llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp:84

Parameters

llvm::raw_ostream& OS

Optional<llvm::StringRef> load(
    llvm::StringRef FileName,
    const Optional<llvm::StringRef>&
        EmbeddedSource)

Declared at: llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp:34

Parameters

llvm::StringRef FileName
const Optional<llvm::StringRef>& EmbeddedSource

Optional<llvm::StringRef> pruneSource(
    const Optional<llvm::StringRef>& Source)

Declared at: llvm/lib/DebugInfo/Symbolize/DIPrinter.cpp:51

Parameters

const Optional<llvm::StringRef>& Source