LLVM 22.0.0git
llvm::DIEString Class Reference

A container for string pool string values. More...

#include "llvm/CodeGen/DIE.h"

Public Member Functions

 DIEString (DwarfStringPoolEntryRef S)
StringRef getString () const
 Grab the string out of the object.
LLVM_ABI void emitValue (const AsmPrinter *AP, dwarf::Form Form) const
 EmitValue - Emit string value.
LLVM_ABI unsigned sizeOf (const dwarf::FormParams &FormParams, dwarf::Form Form) const
 sizeOf - Determine size of delta value in bytes.
LLVM_ABI void print (raw_ostream &O) const

Detailed Description

A container for string pool string values.

This class is used with the DW_FORM_strp and DW_FORM_GNU_str_index forms.

Definition at line 283 of file DIE.h.

Constructor & Destructor Documentation

◆ DIEString()

llvm::DIEString::DIEString ( DwarfStringPoolEntryRef S)
inline

Definition at line 287 of file DIE.h.

Member Function Documentation

◆ emitValue()

void DIEString::emitValue ( const AsmPrinter * AP,
dwarf::Form Form ) const

◆ getString()

StringRef llvm::DIEString::getString ( ) const
inline

Grab the string out of the object.

Definition at line 290 of file DIE.h.

◆ print()

LLVM_DUMP_METHOD void DIEString::print ( raw_ostream & O) const

Definition at line 614 of file DIE.cpp.

◆ sizeOf()

unsigned DIEString::sizeOf ( const dwarf::FormParams & FormParams,
dwarf::Form Form ) const

sizeOf - Determine size of delta value in bytes.

Definition at line 593 of file DIE.cpp.

References llvm::dwarf::FormParams::DwarfUsesRelocationsAcrossSections, llvm_unreachable, llvm::DIEInteger::sizeOf(), and llvm::DIELabel::sizeOf().


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