LLVM
8.0.1
|
StringToOffsetTable - This class uniques a bunch of nul-terminated strings and keeps track of their offset in a massive contiguous string allocation. More...
#include "llvm/TableGen/StringToOffsetTable.h"
Public Member Functions | |
bool | Empty () const |
unsigned | GetOrAddStringOffset (StringRef Str, bool appendZero=true) |
void | EmitString (raw_ostream &O) |
void | EmitCharArray (raw_ostream &O) |
Emit the string using character literals. More... | |
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.
|
inline |
Emit the string using character literals.
MSVC has a limitation that string literals cannot be longer than 64K.
Definition at line 84 of file StringToOffsetTable.h.
References assert(), C, and llvm::raw_ostream::write_escaped().
|
inline |
Definition at line 45 of file StringToOffsetTable.h.
References assert(), llvm::SmallString< InternalLen >::str(), and llvm::raw_ostream::write_escaped().
|
inline |
Definition at line 30 of file StringToOffsetTable.h.
References llvm::StringMapImpl::empty().
|
inline |
Definition at line 32 of file StringToOffsetTable.h.
References llvm::StringRef::begin(), llvm::StringRef::end(), llvm::StringMap< ValueTy, AllocatorTy >::insert(), and llvm::StringRef::size().