LLVM API Documentation
#include <StringToOffsetTable.h>
Public Member Functions | |
unsigned | GetOrAddStringOffset (StringRef Str, bool appendZero=true) |
void | EmitString (raw_ostream &O) |
StringToOffsetTable - This class uniques a bunch of nul-terminated strings and keeps track of their offset in a massive contiguous string allocation. It can then output this string blob and use indexes into the string to reference each piece.
Definition at line 25 of file StringToOffsetTable.h.
void llvm::StringToOffsetTable::EmitString | ( | raw_ostream & | O | ) | [inline] |
Definition at line 43 of file StringToOffsetTable.h.
References llvm::LibFunc::isdigit, llvm::SmallString< InternalLen >::str(), and llvm::raw_ostream::write_escaped().
unsigned llvm::StringToOffsetTable::GetOrAddStringOffset | ( | StringRef | Str, |
bool | appendZero = true |
||
) | [inline] |
Definition at line 30 of file StringToOffsetTable.h.
References llvm::StringRef::begin(), llvm::StringRef::end(), llvm::StringMap< ValueTy, AllocatorTy >::GetOrCreateValue(), llvm::StringMapEntry< ValueTy >::getValue(), and llvm::StringMapEntry< ValueTy >::setValue().