LLVM
15.0.0git
|
StringMapEntryBase - Shared base class of StringMapEntry instances. More...
#include "llvm/ADT/StringMapEntry.h"
Public Member Functions | |
StringMapEntryBase (size_t keyLength) | |
size_t | getKeyLength () const |
Static Protected Member Functions | |
template<typename AllocatorTy > | |
static void * | allocateWithKey (size_t EntrySize, size_t EntryAlign, StringRef Key, AllocatorTy &Allocator) |
Helper to tail-allocate Key . More... | |
StringMapEntryBase - Shared base class of StringMapEntry instances.
Definition at line 26 of file StringMapEntry.h.
|
inlineexplicit |
Definition at line 30 of file StringMapEntry.h.
|
staticprotected |
Helper to tail-allocate Key
.
It'd be nice to generalize this so it could be reused elsewhere, maybe even taking an llvm::function_ref to type-erase the allocator and put it in a source file.
Definition at line 45 of file StringMapEntry.h.
References Allocator, assert(), and memcpy().
Referenced by llvm::StringMapEntry< llvm::Comdat >::Create().
|
inline |
Definition at line 32 of file StringMapEntry.h.
Referenced by llvm::StringMapEntry< llvm::Comdat >::Destroy(), llvm::StringMapImpl::FindKey(), llvm::StringMapEntry< llvm::Comdat >::first(), llvm::TargetIntrinsicInfo::getIntrinsicID(), llvm::StringMapEntry< llvm::Comdat >::getKey(), llvm::StringMapImpl::LookupBucketFor(), and llvm::StringMapImpl::RemoveKey().