StringMapEntryBase(size_t keyLength)
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
static StringMapEntry * Create(StringRef key, AllocatorTy &allocator, InitTy &&... initVals)
Create a StringMapEntry for the specified key construct the value using InitiVals.
size_t getKeyLength() const
NoneType getValue() const
StringMapEntryStorage - Holds the value in a StringMapEntry.
static StringMapEntry & GetStringMapEntryFromKeyData(const char *keyData)
GetStringMapEntryFromKeyData - Given key data that is known to be embedded into a StringMapEntry,...
StringMapEntryBase - Shared base class of StringMapEntry instances.
StringMapEntryStorage(size_t keyLength, InitTy &&... initVals)
static void * allocateWithKey(size_t EntrySize, size_t EntryAlign, StringRef Key, AllocatorTy &Allocator)
Helper to tail-allocate Key.
const char * getKeyData() const
getKeyData - Return the start of the string data that is the key for this value.
void setValue(const ValueTy &V)
const ValueTy & getValue() const
void Destroy(AllocatorTy &allocator)
Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator.
StringMapEntryStorage(size_t keyLength)
StringMapEntryStorage(size_t keyLength, NoneType=None)