|
LLVM
7.0.0
|
#include "CodeGen/AsmPrinter/DwarfStringPool.h"
Public Types | |
| using | EntryRef = DwarfStringPoolEntryRef |
Public Member Functions | |
| DwarfStringPool (BumpPtrAllocator &A, AsmPrinter &Asm, StringRef Prefix) | |
| void | emitStringOffsetsTableHeader (AsmPrinter &Asm, MCSection *OffsetSection, MCSymbol *StartSym) |
| void | emit (AsmPrinter &Asm, MCSection *StrSection, MCSection *OffsetSection=nullptr, bool UseRelativeOffsets=false) |
| bool | empty () const |
| unsigned | size () const |
| EntryRef | getEntry (AsmPrinter &Asm, StringRef Str) |
| Get a reference to an entry in the string pool. More... | |
Definition at line 27 of file DwarfStringPool.h.
Definition at line 36 of file DwarfStringPool.h.
| DwarfStringPool::DwarfStringPool | ( | BumpPtrAllocator & | A, |
| AsmPrinter & | Asm, | ||
| StringRef | Prefix | ||
| ) |
Definition at line 22 of file DwarfStringPool.cpp.
| void DwarfStringPool::emit | ( | AsmPrinter & | Asm, |
| MCSection * | StrSection, | ||
| MCSection * | OffsetSection = nullptr, |
||
| bool | UseRelativeOffsets = false |
||
| ) |
Definition at line 64 of file DwarfStringPool.cpp.
References assert(), E, llvm::AsmPrinter::emitDwarfStringOffset(), llvm::AsmPrinter::OutStreamer, and size().
Referenced by llvm::DwarfFile::emitStrings().
| void DwarfStringPool::emitStringOffsetsTableHeader | ( | AsmPrinter & | Asm, |
| MCSection * | OffsetSection, | ||
| MCSymbol * | StartSym | ||
| ) |
Definition at line 42 of file DwarfStringPool.cpp.
References llvm::AsmPrinter::emitInt16(), llvm::AsmPrinter::emitInt32(), empty(), llvm::AsmPrinter::getDwarfVersion(), llvm::AsmPrinter::OutStreamer, and size().
Referenced by llvm::DwarfDebug::endFunctionImpl().
|
inline |
Definition at line 47 of file DwarfStringPool.h.
References llvm::StringMapImpl::empty().
Referenced by emitStringOffsetsTableHeader().
| DwarfStringPool::EntryRef DwarfStringPool::getEntry | ( | AsmPrinter & | Asm, |
| StringRef | Str | ||
| ) |
Get a reference to an entry in the string pool.
Definition at line 27 of file DwarfStringPool.cpp.
References assert(), llvm::AsmPrinter::createTempSymbol(), I, and llvm::StringRef::size().
Referenced by llvm::DwarfDebug::addDwarfTypeUnitType(), llvm::DwarfUnit::addString(), and size().
|
inline |
Definition at line 49 of file DwarfStringPool.h.
References llvm::HexStyle::Asm, getEntry(), and llvm::StringMapImpl::size().
Referenced by emit(), and emitStringOffsetsTableHeader().
1.8.13