LLVM API Documentation
#include <StringMap.h>
Public Member Functions | |
StringMapEntry (unsigned strLen) | |
StringMapEntry (unsigned strLen, ValueTy V) | |
StringRef | getKey () const |
const ValueTy & | getValue () const |
ValueTy & | getValue () |
void | setValue (const ValueTy &V) |
const char * | getKeyData () const |
StringRef | first () const |
template<typename AllocatorTy > | |
void | Destroy (AllocatorTy &Allocator) |
void | Destroy () |
Destroy this object, releasing memory back to the malloc allocator. | |
Static Public Member Functions | |
template<typename AllocatorTy , typename InitType > | |
static StringMapEntry * | Create (StringRef Key, AllocatorTy &Allocator, InitType InitVal) |
template<typename AllocatorTy > | |
static StringMapEntry * | Create (StringRef Key, AllocatorTy &Allocator) |
template<typename InitType > | |
static StringMapEntry * | Create (StringRef Key, InitType InitVal) |
Create - Create a StringMapEntry with normal malloc/free. | |
static StringMapEntry * | Create (StringRef Key) |
static StringMapEntry & | GetStringMapEntryFromValue (ValueTy &V) |
static const StringMapEntry & | GetStringMapEntryFromValue (const ValueTy &V) |
static StringMapEntry & | GetStringMapEntryFromKeyData (const char *KeyData) |
Public Attributes | |
ValueTy | second |
StringMapEntry - This is used to represent one value that is inserted into a StringMap. It contains the Value itself and the key: the string length and data.
Definition at line 113 of file StringMap.h.
llvm::StringMapEntry< ValueTy >::StringMapEntry | ( | unsigned | strLen | ) | [inline, explicit] |
Definition at line 118 of file StringMap.h.
llvm::StringMapEntry< ValueTy >::StringMapEntry | ( | unsigned | strLen, |
ValueTy | V | ||
) | [inline] |
Definition at line 120 of file StringMap.h.
static StringMapEntry* llvm::StringMapEntry< ValueTy >::Create | ( | StringRef | Key, |
AllocatorTy & | Allocator, | ||
InitType | InitVal | ||
) | [inline, static] |
Create - Create a StringMapEntry for the specified key and default construct the value.
Definition at line 142 of file StringMap.h.
Referenced by llvm::StringMapEntry< Comdat >::Create(), llvm::StringMap< const DIE * >::insert(), llvm::StringPool::intern(), and llvm::Value::setName().
static StringMapEntry* llvm::StringMapEntry< ValueTy >::Create | ( | StringRef | Key, |
AllocatorTy & | Allocator | ||
) | [inline, static] |
Definition at line 167 of file StringMap.h.
static StringMapEntry* llvm::StringMapEntry< ValueTy >::Create | ( | StringRef | Key, |
InitType | InitVal | ||
) | [inline, static] |
Create - Create a StringMapEntry with normal malloc/free.
Definition at line 173 of file StringMap.h.
static StringMapEntry* llvm::StringMapEntry< ValueTy >::Create | ( | StringRef | Key | ) | [inline, static] |
Definition at line 178 of file StringMap.h.
void llvm::StringMapEntry< ValueTy >::Destroy | ( | AllocatorTy & | Allocator | ) | [inline] |
Destroy - Destroy this StringMapEntry, releasing memory back to the specified allocator.
Definition at line 205 of file StringMap.h.
Referenced by llvm::PooledStringPtr::clear(), llvm::StringMap< const DIE * >::erase(), llvm::Value::setName(), llvm::Value::takeName(), and llvm::Value::~Value().
void llvm::StringMapEntry< ValueTy >::Destroy | ( | ) | [inline] |
Destroy this object, releasing memory back to the malloc allocator.
Definition at line 214 of file StringMap.h.
Referenced by llvm::StringMapEntry< Comdat >::Destroy().
StringRef llvm::StringMapEntry< ValueTy >::first | ( | ) | const [inline] |
Definition at line 137 of file StringMap.h.
Referenced by llvm::Comdat::getName().
StringRef llvm::StringMapEntry< ValueTy >::getKey | ( | ) | const [inline] |
Definition at line 123 of file StringMap.h.
Referenced by llvm::StringTableBuilder::add(), llvm::Value::getName(), and llvm::StringMap< const DIE * >::insert().
const char* llvm::StringMapEntry< ValueTy >::getKeyData | ( | ) | const [inline] |
getKeyData - Return the start of the string data that is the key for this value. The string data is always stored immediately after the StringMapEntry object.
Definition at line 135 of file StringMap.h.
Referenced by llvm::PooledStringPtr::begin(), llvm::PooledStringPtr::end(), llvm::StringMapEntry< Comdat >::first(), llvm::TargetIntrinsicInfo::getIntrinsicID(), llvm::StringMapEntry< Comdat >::getKey(), and WriteValueSymbolTable().
static StringMapEntry& llvm::StringMapEntry< ValueTy >::GetStringMapEntryFromKeyData | ( | const char * | KeyData | ) | [inline, static] |
GetStringMapEntryFromKeyData - Given key data that is known to be embedded into a StringMapEntry, return the StringMapEntry itself.
Definition at line 197 of file StringMap.h.
static StringMapEntry& llvm::StringMapEntry< ValueTy >::GetStringMapEntryFromValue | ( | ValueTy & | V | ) | [inline, static] |
GetStringMapEntryFromValue - Given a value that is known to be embedded into a StringMapEntry, return the StringMapEntry itself.
Definition at line 184 of file StringMap.h.
Referenced by llvm::StringMapEntry< Comdat >::GetStringMapEntryFromValue().
static const StringMapEntry& llvm::StringMapEntry< ValueTy >::GetStringMapEntryFromValue | ( | const ValueTy & | V | ) | [inline, static] |
Definition at line 191 of file StringMap.h.
const ValueTy& llvm::StringMapEntry< ValueTy >::getValue | ( | ) | const [inline] |
Definition at line 127 of file StringMap.h.
Referenced by llvm::PooledStringPtr::clear(), llvm::MDString::get(), llvm::MCDwarfLineTableHeader::getFile(), llvm::StringToOffsetTable::GetOrAddStringOffset(), llvm::SpecialCaseList::inSection(), llvm::StringPool::intern(), llvm::PooledStringPtr::operator=(), llvm::StringMap< const DIE * >::operator[](), and llvm::PooledStringPtr::PooledStringPtr().
ValueTy& llvm::StringMapEntry< ValueTy >::getValue | ( | ) | [inline] |
Definition at line 128 of file StringMap.h.
void llvm::StringMapEntry< ValueTy >::setValue | ( | const ValueTy & | V | ) | [inline] |
Definition at line 130 of file StringMap.h.
Referenced by llvm::StringToOffsetTable::GetOrAddStringOffset(), llvm::Value::setName(), and llvm::Value::takeName().
ValueTy llvm::StringMapEntry< ValueTy >::second |
Definition at line 116 of file StringMap.h.
Referenced by llvm::RuntimeDyldImpl::addRelocationForSymbol(), GetOptionInfo(), getOptionPred(), llvm::Module::getOrInsertComdat(), llvm::PassRegistry::getPassInfo(), llvm::RuntimeDyldMachO::getRelocationValueRef(), llvm::StringMapEntry< Comdat >::GetStringMapEntryFromValue(), llvm::RuntimeDyldImpl::getSymbolAddress(), llvm::RuntimeDyldImpl::getSymbolLoadAddress(), llvm::StringMapEntry< Comdat >::getValue(), llvm::StringMap< const DIE * >::lookup(), LookupOption(), llvm::RuntimeDyldELF::processRelocationRef(), llvm::RuntimeDyldImpl::resolveExternalSymbols(), and llvm::StringMapEntry< Comdat >::setValue().