LLVM: llvm::NonRelocatableStringpool Class Reference (original) (raw)

A string table that doesn't need relocations. More...

#include "[llvm/CodeGen/NonRelocatableStringpool.h](NonRelocatableStringpool%5F8h%5Fsource.html)"

Public Member Functions
NonRelocatableStringpool (bool PutEmptyString=false)
LLVM_ABI DwarfStringPoolEntryRef getEntry (StringRef S)
uint64_t getStringOffset (StringRef S)
Get the offset of string S in the string table.
LLVM_ABI StringRef internString (StringRef S)
Get permanent storage for S (but do not necessarily emit S in the output section).
uint64_t getSize ()
LLVM_ABI std::vector< DwarfStringPoolEntryRef > getEntriesForEmission () const
Return the list of strings to be emitted.

A string table that doesn't need relocations.

Use this class when a string table doesn't need relocations. This class provides this ability by just associating offsets with strings.

Definition at line 24 of file NonRelocatableStringpool.h.

MapTy

Entries are stored into the [StringMap](classllvm%5F1%5F1StringMap.html "StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...") and simply linked together through the second element of this pair in order to keep track of insertion order.

Definition at line 29 of file NonRelocatableStringpool.h.

llvm::NonRelocatableStringpool::NonRelocatableStringpool ( bool PutEmptyString = false) inline

getEntriesForEmission()

getEntry()

getSize()

uint64_t llvm::NonRelocatableStringpool::getSize ( ) inline

getStringOffset()

internString()


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