A format‐neutral container for source line information.

Synopsis

Declared in <llvm/DebugInfo/DIContext.h>

struct DILineInfo;

Member Functions

Name

Description

DILineInfo [constructor]

Construct with invalid file/function names (BadString).

dump

Print this line info to OS in a human‐readable form.

operator bool

True if this is not a default‐constructed invalid line info.

operator==

True if line, column, names, start line, and discriminator match.

operator!=

True if this line info differs from RHS under operator==.

operator<

Lexicographically compare file, function, start file, line, column, start line, and discriminator.

Data Members

Name

Description

Column

Source column number (1‐based), or 0 if unknown.

Discriminator

DWARF discriminator for this location within the line table.

FileName

Source file name for this location, or BadString if unknown.

FunctionName

Demangled or raw name of the function containing this location.

IsApproximateLine

True when the reported line is an approximation, not an exact match.

Line

Source line number (1‐based), or 0 if unknown.

LineSource

Source text for this particular line when full‐file Source is unavailable.

Source

Full source text of the file named by FileName, when available.

StartAddress

Absolute start address of the enclosing function or inlined frame, if known.

StartFileName

File name for the start of the enclosing function or inlined frame.

StartLine

Starting line of the enclosing function or inlined frame, or 0.

Static Data Members

Name

Description

Addr2LineBadString

addr2line‐style placeholder used instead of BadString.

ApproxString

Marker appended when line information is approximate.

BadString

Placeholder used when a file or function name cannot be resolved.

Created with MrDocs