LLVM  6.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 empty () 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 
)

Definition at line 42 of file DwarfStringPool.cpp.

References assert(), E, and llvm::AsmPrinter::OutStreamer.

Referenced by llvm::DwarfFile::emitStrings().

◆ empty()

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

Definition at line 42 of file DwarfStringPool.h.

References llvm::HexStyle::Asm, llvm::StringMapImpl::empty(), and getEntry().

◆ 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 empty().


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