LLVM 22.0.0git
llvm::MCDwarfLineStr Class Reference

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

#include "llvm/MC/MCDwarf.h"

Public Member Functions

LLVM_ABI MCDwarfLineStr (MCContext &Ctx)
 Construct an instance that can emit .debug_line_str (for use in a normal v5 line table).
StringSavergetSaver ()
LLVM_ABI void emitRef (MCStreamer *MCOS, StringRef Path)
 Emit a reference to the string.
LLVM_ABI void emitSection (MCStreamer *MCOS)
 Emit the .debug_line_str section if appropriate.
LLVM_ABI SmallString< 0 > getFinalizedData ()
 Returns finalized section.
LLVM_ABI 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 52 of file MCDwarf.h.

Constructor & Destructor Documentation

◆ MCDwarfLineStr()

MCDwarfLineStr::MCDwarfLineStr ( MCContext & Ctx)
explicit

Construct an instance that can emit .debug_line_str (for use in a normal v5 line table).

Definition at line 76 of file MCDwarf.cpp.

References assert(), and llvm::MCSection::getBeginSymbol().

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 393 of file MCDwarf.cpp.

Referenced by emitRef().

◆ emitRef()

◆ emitSection()

◆ getFinalizedData()

SmallString< 0 > MCDwarfLineStr::getFinalizedData ( )

Returns finalized section.

Definition at line 383 of file MCDwarf.cpp.

References llvm::Data.

Referenced by emitSection().

◆ getSaver()

StringSaver & llvm::MCDwarfLineStr::getSaver ( )
inline

Definition at line 64 of file MCDwarf.h.


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