LLVM API Documentation
#include <DwarfStringPool.h>
Public Member Functions | |
DwarfStringPool (BumpPtrAllocator &A, AsmPrinter &Asm, StringRef Prefix) | |
void | emit (AsmPrinter &Asm, const MCSection *StrSection, const MCSection *OffsetSection=nullptr) |
MCSymbol * | getSymbol (AsmPrinter &Asm, StringRef Str) |
Returns an entry into the string pool with the given string text. | |
unsigned | getIndex (AsmPrinter &Asm, StringRef Str) |
Returns the index into the string pool with the given string text. | |
bool | empty () const |
Definition at line 28 of file DwarfStringPool.h.
llvm::DwarfStringPool::DwarfStringPool | ( | BumpPtrAllocator & | A, |
AsmPrinter & | Asm, | ||
StringRef | Prefix | ||
) | [inline] |
Definition at line 33 of file DwarfStringPool.h.
void DwarfStringPool::emit | ( | AsmPrinter & | Asm, |
const MCSection * | StrSection, | ||
const MCSection * | OffsetSection = nullptr |
||
) |
Definition at line 36 of file DwarfStringPool.cpp.
References llvm::MCStreamer::EmitBytes(), llvm::MCStreamer::EmitIntValue(), llvm::MCStreamer::EmitLabel(), llvm::StringMapImpl::empty(), llvm::AsmPrinter::OutStreamer, llvm::StringMapImpl::size(), and llvm::MCStreamer::SwitchSection().
Referenced by llvm::DwarfFile::emitStrings().
bool llvm::DwarfStringPool::empty | ( | ) | const [inline] |
Definition at line 47 of file DwarfStringPool.h.
References llvm::StringMapImpl::empty().
unsigned DwarfStringPool::getIndex | ( | AsmPrinter & | Asm, |
StringRef | Str | ||
) |
Returns the index into the string pool with the given string text.
Definition at line 32 of file DwarfStringPool.cpp.
References getEntry().
Referenced by llvm::DwarfUnit::addString().
MCSymbol * DwarfStringPool::getSymbol | ( | AsmPrinter & | Asm, |
StringRef | Str | ||
) |
Returns an entry into the string pool with the given string text.
Definition at line 28 of file DwarfStringPool.cpp.
References getEntry().
Referenced by llvm::DwarfDebug::addAccelName(), llvm::DwarfDebug::addAccelNamespace(), llvm::DwarfDebug::addAccelObjC(), llvm::DwarfDebug::addAccelType(), and llvm::DwarfUnit::addLocalString().