class StringToOffsetTable

Declaration

class StringToOffsetTable { /* full declaration omitted */ };

Description

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.

Declared at: llvm/include/llvm/TableGen/StringToOffsetTable.h:24

Method Overview

Methods

void EmitCharArray(llvm::raw_ostream& O)

Description

Emit the string using character literals. MSVC has a limitation that string literals cannot be longer than 64K.

Declared at: llvm/include/llvm/TableGen/StringToOffsetTable.h:83

Parameters

llvm::raw_ostream& O

void EmitString(llvm::raw_ostream& O)

Declared at: llvm/include/llvm/TableGen/StringToOffsetTable.h:44

Parameters

llvm::raw_ostream& O

bool Empty() const

Declared at: llvm/include/llvm/TableGen/StringToOffsetTable.h:29

unsigned int GetOrAddStringOffset(
    llvm::StringRef Str,
    bool appendZero = true)

Declared at: llvm/include/llvm/TableGen/StringToOffsetTable.h:31

Parameters

llvm::StringRef Str
bool appendZero = true