|
LLVM 22.0.0git
|
#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). | |
Definition at line 27 of file DwarfStringPool.h.
Definition at line 39 of file DwarfStringPool.h.
| DwarfStringPool::DwarfStringPool | ( | BumpPtrAllocator & | A, |
| AsmPrinter & | Asm, | ||
| StringRef | Prefix ) |
Definition at line 20 of file DwarfStringPool.cpp.
References A().
| void DwarfStringPool::emit | ( | AsmPrinter & | Asm, |
| MCSection * | StrSection, | ||
| MCSection * | OffsetSection = nullptr, | ||
| bool | UseRelativeOffsets = false ) |
Definition at line 75 of file DwarfStringPool.cpp.
References A(), assert(), B(), llvm::make_pointer_range(), llvm::SmallVectorImpl< T >::resize(), size(), and llvm::sort().
| void DwarfStringPool::emitStringOffsetsTableHeader | ( | AsmPrinter & | Asm, |
| MCSection * | OffsetSection, | ||
| MCSymbol * | StartSym ) |
Definition at line 53 of file DwarfStringPool.cpp.
References getNumIndexedStrings().
|
inline |
Definition at line 52 of file DwarfStringPool.h.
| 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.
| 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.
|
inline |
Definition at line 56 of file DwarfStringPool.h.
Referenced by emitStringOffsetsTableHeader().
|
inline |
Definition at line 54 of file DwarfStringPool.h.
Referenced by emit().