Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
llvm::DwarfStringPool Class Reference

#include "CodeGen/AsmPrinter/DwarfStringPool.h"

Public Types

using EntryRef = DwarfStringPoolEntryRef

Public Member Functions

LLVM_ABI_FOR_TEST DwarfStringPool (BumpPtrAllocator &A, AsmPrinter &Asm, StringRef Prefix)
LLVM_ABI_FOR_TEST void emitStringOffsetsTableHeader (AsmPrinter &Asm, MCSection *OffsetSection, MCSymbol *StartSym)
LLVM_ABI_FOR_TEST void emit (AsmPrinter &Asm, MCSection *StrSection, MCSection *OffsetSection=nullptr, bool UseRelativeOffsets=false)
bool empty () const
unsigned size () const
unsigned getNumIndexedStrings () const
LLVM_ABI_FOR_TEST EntryRef getEntry (AsmPrinter &Asm, StringRef Str)
 Get a reference to an entry in the string pool.
LLVM_ABI_FOR_TEST EntryRef getIndexedEntry (AsmPrinter &Asm, StringRef Str)
 Same as getEntry, except that you can use EntryRef::getIndex to obtain a unique ID of this entry (e.g., for use in indexed forms like DW_FORM_strx).

Detailed Description

Definition at line 27 of file DwarfStringPool.h.

Member Typedef Documentation

◆ EntryRef

Constructor & Destructor Documentation

◆ DwarfStringPool()

DwarfStringPool::DwarfStringPool ( BumpPtrAllocator & A,
AsmPrinter & Asm,
StringRef Prefix )

Definition at line 20 of file DwarfStringPool.cpp.

References A().

Member Function Documentation

◆ emit()

void DwarfStringPool::emit ( AsmPrinter & Asm,
MCSection * StrSection,
MCSection * OffsetSection = nullptr,
bool UseRelativeOffsets = false )

◆ emitStringOffsetsTableHeader()

void DwarfStringPool::emitStringOffsetsTableHeader ( AsmPrinter & Asm,
MCSection * OffsetSection,
MCSymbol * StartSym )

Definition at line 53 of file DwarfStringPool.cpp.

References getNumIndexedStrings().

◆ empty()

bool llvm::DwarfStringPool::empty ( ) const
inline

Definition at line 52 of file DwarfStringPool.h.

◆ getEntry()

DwarfStringPool::EntryRef DwarfStringPool::getEntry ( AsmPrinter & Asm,
StringRef Str )

Get a reference to an entry in the string pool.

Definition at line 39 of file DwarfStringPool.cpp.

◆ getIndexedEntry()

DwarfStringPool::EntryRef DwarfStringPool::getIndexedEntry ( AsmPrinter & Asm,
StringRef Str )

Same as getEntry, except that you can use EntryRef::getIndex to obtain a unique ID of this entry (e.g., for use in indexed forms like DW_FORM_strx).

Definition at line 45 of file DwarfStringPool.cpp.

◆ getNumIndexedStrings()

unsigned llvm::DwarfStringPool::getNumIndexedStrings ( ) const
inline

Definition at line 56 of file DwarfStringPool.h.

Referenced by emitStringOffsetsTableHeader().

◆ size()

unsigned llvm::DwarfStringPool::size ( ) const
inline

Definition at line 54 of file DwarfStringPool.h.

Referenced by emit().


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