LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::MCDwarfLineTable Class Reference

#include "llvm/MC/MCDwarf.h"

Public Member Functions

void emitCU (MCStreamer *MCOS, MCDwarfLineTableParams Params, std::optional< MCDwarfLineStr > &LineStr) const
 
Expected< unsignedtryGetFile (StringRef &Directory, StringRef &FileName, std::optional< MD5::MD5Result > Checksum, std::optional< StringRef > Source, uint16_t DwarfVersion, unsigned FileNumber=0)
 
unsigned getFile (StringRef &Directory, StringRef &FileName, std::optional< MD5::MD5Result > Checksum, std::optional< StringRef > Source, uint16_t DwarfVersion, unsigned FileNumber=0)
 
void setRootFile (StringRef Directory, StringRef FileName, std::optional< MD5::MD5Result > Checksum, std::optional< StringRef > Source)
 
void resetFileTable ()
 
bool hasRootFile () const
 
MCDwarfFilegetRootFile ()
 
const MCDwarfFilegetRootFile () const
 
bool isMD5UsageConsistent () const
 
MCSymbolgetLabel () const
 
void setLabel (MCSymbol *Label)
 
const SmallVectorImpl< std::string > & getMCDwarfDirs () const
 
SmallVectorImpl< std::string > & getMCDwarfDirs ()
 
const SmallVectorImpl< MCDwarfFile > & getMCDwarfFiles () const
 
SmallVectorImpl< MCDwarfFile > & getMCDwarfFiles ()
 
const MCLineSectiongetMCLineSections () const
 
MCLineSectiongetMCLineSections ()
 

Static Public Member Functions

static void emit (MCStreamer *MCOS, MCDwarfLineTableParams Params)
 
static void emitOne (MCStreamer *MCOS, MCSection *Section, const MCLineSection::MCDwarfLineEntryCollection &LineEntries)
 

Detailed Description

Definition at line 351 of file MCDwarf.h.

Member Function Documentation

◆ emit()

void MCDwarfLineTable::emit ( MCStreamer MCOS,
MCDwarfLineTableParams  Params 
)
static

◆ emitCU()

void MCDwarfLineTable::emitCU ( MCStreamer MCOS,
MCDwarfLineTableParams  Params,
std::optional< MCDwarfLineStr > &  LineStr 
) const

◆ emitOne()

void MCDwarfLineTable::emitOne ( MCStreamer MCOS,
MCSection Section,
const MCLineSection::MCDwarfLineEntryCollection LineEntries 
)
static

◆ getFile()

unsigned llvm::MCDwarfLineTable::getFile ( StringRef Directory,
StringRef FileName,
std::optional< MD5::MD5Result Checksum,
std::optional< StringRef Source,
uint16_t  DwarfVersion,
unsigned  FileNumber = 0 
)
inline

Definition at line 372 of file MCDwarf.h.

References llvm::cantFail(), and tryGetFile().

◆ getLabel()

MCSymbol * llvm::MCDwarfLineTable::getLabel ( ) const
inline

Definition at line 402 of file MCDwarf.h.

Referenced by llvm::MCStreamer::getDwarfLineTableSymbol().

◆ getMCDwarfDirs() [1/2]

SmallVectorImpl< std::string > & llvm::MCDwarfLineTable::getMCDwarfDirs ( )
inline

Definition at line 414 of file MCDwarf.h.

◆ getMCDwarfDirs() [2/2]

const SmallVectorImpl< std::string > & llvm::MCDwarfLineTable::getMCDwarfDirs ( ) const
inline

Definition at line 410 of file MCDwarf.h.

Referenced by llvm::MCContext::getMCDwarfDirs().

◆ getMCDwarfFiles() [1/2]

SmallVectorImpl< MCDwarfFile > & llvm::MCDwarfLineTable::getMCDwarfFiles ( )
inline

Definition at line 422 of file MCDwarf.h.

◆ getMCDwarfFiles() [2/2]

const SmallVectorImpl< MCDwarfFile > & llvm::MCDwarfLineTable::getMCDwarfFiles ( ) const
inline

◆ getMCLineSections() [1/2]

MCLineSection & llvm::MCDwarfLineTable::getMCLineSections ( )
inline

Definition at line 429 of file MCDwarf.h.

◆ getMCLineSections() [2/2]

const MCLineSection & llvm::MCDwarfLineTable::getMCLineSections ( ) const
inline

Definition at line 426 of file MCDwarf.h.

Referenced by llvm::MCDwarfLineEntry::make().

◆ getRootFile() [1/2]

MCDwarfFile & llvm::MCDwarfLineTable::getRootFile ( )
inline

Definition at line 396 of file MCDwarf.h.

Referenced by EmitGenDwarfInfo().

◆ getRootFile() [2/2]

const MCDwarfFile & llvm::MCDwarfLineTable::getRootFile ( ) const
inline

Definition at line 397 of file MCDwarf.h.

◆ hasRootFile()

bool llvm::MCDwarfLineTable::hasRootFile ( ) const
inline

Definition at line 394 of file MCDwarf.h.

◆ isMD5UsageConsistent()

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

Definition at line 400 of file MCDwarf.h.

Referenced by llvm::MCContext::isDwarfMD5UsageConsistent().

◆ resetFileTable()

void llvm::MCDwarfLineTable::resetFileTable ( )
inline

Definition at line 392 of file MCDwarf.h.

◆ setLabel()

void llvm::MCDwarfLineTable::setLabel ( MCSymbol Label)
inline

Definition at line 406 of file MCDwarf.h.

Referenced by llvm::MCStreamer::getDwarfLineTableSymbol().

◆ setRootFile()

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

Definition at line 380 of file MCDwarf.h.

Referenced by llvm::MCContext::setMCLineTableRootFile().

◆ tryGetFile()

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

Definition at line 575 of file MCDwarf.cpp.

References llvm::MCDwarfLineTableHeader::tryGetFile().

Referenced by llvm::MCContext::getDwarfFile(), and getFile().


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