LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::MCDwarfLineTableHeader Struct Reference

#include "llvm/MC/MCDwarf.h"

Public Member Functions

 MCDwarfLineTableHeader ()=default
 
Expected< unsignedtryGetFile (StringRef &Directory, StringRef &FileName, std::optional< MD5::MD5Result > Checksum, std::optional< StringRef > Source, uint16_t DwarfVersion, unsigned FileNumber=0)
 
std::pair< MCSymbol *, MCSymbol * > Emit (MCStreamer *MCOS, MCDwarfLineTableParams Params, std::optional< MCDwarfLineStr > &LineStr) const
 
std::pair< MCSymbol *, MCSymbol * > Emit (MCStreamer *MCOS, MCDwarfLineTableParams Params, ArrayRef< char > SpecialOpcodeLengths, std::optional< MCDwarfLineStr > &LineStr) const
 
void resetMD5Usage ()
 
void trackMD5Usage (bool MD5Used)
 
bool isMD5UsageConsistent () const
 
void setRootFile (StringRef Directory, StringRef FileName, std::optional< MD5::MD5Result > Checksum, std::optional< StringRef > Source)
 
void resetFileTable ()
 

Public Attributes

MCSymbolLabel = nullptr
 
SmallVector< std::string, 3 > MCDwarfDirs
 
SmallVector< MCDwarfFile, 3 > MCDwarfFiles
 
StringMap< unsignedSourceIdMap
 
std::string CompilationDir
 
MCDwarfFile RootFile
 
bool HasAnySource = false
 

Detailed Description

Definition at line 261 of file MCDwarf.h.

Constructor & Destructor Documentation

◆ MCDwarfLineTableHeader()

llvm::MCDwarfLineTableHeader::MCDwarfLineTableHeader ( )
default

Member Function Documentation

◆ Emit() [1/2]

std::pair< MCSymbol *, MCSymbol * > MCDwarfLineTableHeader::Emit ( MCStreamer MCOS,
MCDwarfLineTableParams  Params,
ArrayRef< char SpecialOpcodeLengths,
std::optional< MCDwarfLineStr > &  LineStr 
) const

◆ Emit() [2/2]

std::pair< MCSymbol *, MCSymbol * > MCDwarfLineTableHeader::Emit ( MCStreamer MCOS,
MCDwarfLineTableParams  Params,
std::optional< MCDwarfLineStr > &  LineStr 
) const

◆ isMD5UsageConsistent()

bool llvm::MCDwarfLineTableHeader::isMD5UsageConsistent ( ) const
inline

Definition at line 296 of file MCDwarf.h.

References MCDwarfFiles.

◆ resetFileTable()

void llvm::MCDwarfLineTableHeader::resetFileTable ( )
inline

◆ resetMD5Usage()

void llvm::MCDwarfLineTableHeader::resetMD5Usage ( )
inline

Definition at line 288 of file MCDwarf.h.

Referenced by resetFileTable().

◆ setRootFile()

void llvm::MCDwarfLineTableHeader::setRootFile ( StringRef  Directory,
StringRef  FileName,
std::optional< MD5::MD5Result Checksum,
std::optional< StringRef Source 
)
inline

◆ trackMD5Usage()

void llvm::MCDwarfLineTableHeader::trackMD5Usage ( bool  MD5Used)
inline

Definition at line 292 of file MCDwarf.h.

Referenced by setRootFile(), and tryGetFile().

◆ tryGetFile()

Expected< unsigned > MCDwarfLineTableHeader::tryGetFile ( StringRef Directory,
StringRef FileName,
std::optional< MD5::MD5Result Checksum,
std::optional< StringRef Source,
uint16_t  DwarfVersion,
unsigned  FileNumber = 0 
)

Member Data Documentation

◆ CompilationDir

std::string llvm::MCDwarfLineTableHeader::CompilationDir

Definition at line 266 of file MCDwarf.h.

Referenced by setRootFile(), and tryGetFile().

◆ HasAnySource

bool llvm::MCDwarfLineTableHeader::HasAnySource = false

Definition at line 268 of file MCDwarf.h.

Referenced by resetFileTable(), setRootFile(), and tryGetFile().

◆ Label

MCSymbol* llvm::MCDwarfLineTableHeader::Label = nullptr

Definition at line 262 of file MCDwarf.h.

Referenced by Emit().

◆ MCDwarfDirs

SmallVector<std::string, 3> llvm::MCDwarfLineTableHeader::MCDwarfDirs

Definition at line 263 of file MCDwarf.h.

Referenced by resetFileTable(), and tryGetFile().

◆ MCDwarfFiles

SmallVector<MCDwarfFile, 3> llvm::MCDwarfLineTableHeader::MCDwarfFiles

Definition at line 264 of file MCDwarf.h.

Referenced by isMD5UsageConsistent(), resetFileTable(), and tryGetFile().

◆ RootFile

MCDwarfFile llvm::MCDwarfLineTableHeader::RootFile

Definition at line 267 of file MCDwarf.h.

Referenced by resetFileTable(), setRootFile(), and tryGetFile().

◆ SourceIdMap

StringMap<unsigned> llvm::MCDwarfLineTableHeader::SourceIdMap

Definition at line 265 of file MCDwarf.h.

Referenced by tryGetFile().


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