LLVM  7.0.0svn
Public Types | Public Member Functions | List of all members
llvm::DwarfStringPool Class Reference

#include "CodeGen/AsmPrinter/DwarfStringPool.h"

Public Types

using EntryRef = DwarfStringPoolEntryRef

Public Member Functions

 DwarfStringPool (BumpPtrAllocator &A, AsmPrinter &Asm, StringRef Prefix)
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...

Detailed Description

Definition at line 26 of file DwarfStringPool.h.

Member Typedef Documentation

◆ EntryRef

Definition at line 35 of file DwarfStringPool.h.

Constructor & Destructor Documentation

◆ DwarfStringPool()

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

Definition at line 22 of file DwarfStringPool.cpp.

Member Function Documentation

◆ emit()

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

◆ empty()

bool llvm::DwarfStringPool::empty ( ) const

◆ getEntry()

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::DwarfUnit::addString(), and size().

◆ size()

unsigned llvm::DwarfStringPool::size ( ) const

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