LLVM  13.0.0git
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
llvm::DILineInfo Struct Reference

A format-neutral container for source line information. More...

#include "llvm/DebugInfo/DIContext.h"

Collaboration diagram for llvm::DILineInfo:
Collaboration graph
[legend]

Public Member Functions

 DILineInfo ()
 
bool operator== (const DILineInfo &RHS) const
 
bool operator!= (const DILineInfo &RHS) const
 
bool operator< (const DILineInfo &RHS) const
 
 operator bool () const
 
void dump (raw_ostream &OS)
 

Public Attributes

std::string FileName
 
std::string FunctionName
 
std::string StartFileName
 
Optional< StringRefSource
 
uint32_t Line = 0
 
uint32_t Column = 0
 
uint32_t StartLine = 0
 
uint32_t Discriminator = 0
 

Static Public Attributes

static constexpr const char *const BadString = "<invalid>"
 
static constexpr const char *const Addr2LineBadString = "??"
 

Detailed Description

A format-neutral container for source line information.

Definition at line 31 of file DIContext.h.

Constructor & Destructor Documentation

◆ DILineInfo()

llvm::DILineInfo::DILineInfo ( )
inline

Definition at line 47 of file DIContext.h.

Referenced by operator bool().

Member Function Documentation

◆ dump()

void llvm::DILineInfo::dump ( raw_ostream OS)
inline

Definition at line 71 of file DIContext.h.

References BadString, Column, FileName, FunctionName, Line, StartFileName, and StartLine.

◆ operator bool()

llvm::DILineInfo::operator bool ( ) const
inlineexplicit

Definition at line 69 of file DIContext.h.

References DILineInfo().

◆ operator!=()

bool llvm::DILineInfo::operator!= ( const DILineInfo RHS) const
inline

Definition at line 58 of file DIContext.h.

◆ operator<()

bool llvm::DILineInfo::operator< ( const DILineInfo RHS) const
inline

Definition at line 62 of file DIContext.h.

References Column, Discriminator, FileName, FunctionName, Line, StartFileName, and StartLine.

◆ operator==()

bool llvm::DILineInfo::operator== ( const DILineInfo RHS) const
inline

Definition at line 51 of file DIContext.h.

References Column, Discriminator, FileName, FunctionName, Line, StartFileName, and StartLine.

Member Data Documentation

◆ Addr2LineBadString

constexpr const char* const llvm::DILineInfo::Addr2LineBadString = "??"
staticconstexpr

◆ BadString

constexpr const char* const llvm::DILineInfo::BadString = "<invalid>"
staticconstexpr

◆ Column

uint32_t llvm::DILineInfo::Column = 0

◆ Discriminator

uint32_t llvm::DILineInfo::Discriminator = 0

◆ FileName

std::string llvm::DILineInfo::FileName

◆ FunctionName

std::string llvm::DILineInfo::FunctionName

◆ Line

uint32_t llvm::DILineInfo::Line = 0

◆ Source

Optional<StringRef> llvm::DILineInfo::Source

Definition at line 39 of file DIContext.h.

◆ StartFileName

std::string llvm::DILineInfo::StartFileName

◆ StartLine

uint32_t llvm::DILineInfo::StartLine = 0

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