class StringPool
Declaration
class StringPool { /* full declaration omitted */ };
Description
StringPool - An interned string pool. Use the intern method to add a string. Strings are removed automatically as PooledStringPtrs are destroyed.
Declared at: llvm/include/llvm/Support/StringPool.h:42
Method Overview
- public StringPool()
- public inline bool empty() const
- public llvm::PooledStringPtr intern(llvm::StringRef Str)
- public ~StringPool()
Methods
¶StringPool()
StringPool()
Declared at: llvm/include/llvm/Support/StringPool.h:60
¶inline bool empty() const
inline bool empty() const
Description
empty - Checks whether the pool is empty. Returns true if so.
Declared at: llvm/include/llvm/Support/StringPool.h:70
¶llvm::PooledStringPtr intern(llvm::StringRef Str)
llvm::PooledStringPtr intern(llvm::StringRef Str)
Description
intern - Adds a string to the pool and returns a reference-counted pointer to it. No additional memory is allocated if the string already exists in the pool.
Declared at: llvm/include/llvm/Support/StringPool.h:66
Parameters
- llvm::StringRef Str
¶~StringPool()
~StringPool()
Declared at: llvm/include/llvm/Support/StringPool.h:61