LLVM 19.0.0git
Public Member Functions | List of all members
llvm::MCDwarfLineStr Class Reference

Manage the .debug_line_str section contents, if we use it. More...

#include "llvm/MC/MCDwarf.h"

Public Member Functions

 MCDwarfLineStr (MCContext &Ctx)
 Construct an instance that can emit .debug_line_str (for use in a normal v5 line table).
StringSavergetSaver ()
void emitRef (MCStreamer *MCOS, StringRef Path)
 Emit a reference to the string.
void emitSection (MCStreamer *MCOS)
 Emit the .debug_line_str section if appropriate.
SmallString< 0 > getFinalizedData ()
 Returns finalized section.
size_t addString (StringRef Path)
 Adds path Path to the line string.

Detailed Description

Manage the .debug_line_str section contents, if we use it.

Definition at line 51 of file MCDwarf.h.

Constructor & Destructor Documentation

◆ MCDwarfLineStr()

MCDwarfLineStr::MCDwarfLineStr ( MCContext Ctx)

Member Function Documentation

◆ addString()

size_t MCDwarfLineStr::addString ( StringRef  Path)

Adds path Path to the line string.

Returns offset in the .debug_line_str section.

Definition at line 354 of file MCDwarf.cpp.

References llvm::StringTableBuilder::add().

Referenced by emitRef().

◆ emitRef()

void MCDwarfLineStr::emitRef ( MCStreamer MCOS,
StringRef  Path 

◆ emitSection()

void MCDwarfLineStr::emitSection ( MCStreamer MCOS)

◆ getFinalizedData()

SmallString< 0 > MCDwarfLineStr::getFinalizedData ( )

◆ getSaver()

StringSaver & llvm::MCDwarfLineStr::getSaver ( )

Definition at line 63 of file MCDwarf.h.

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