LLVM API Documentation
#include <StringPool.h>
Public Member Functions | |
| StringPool () | |
| ~StringPool () | |
| PooledStringPtr | intern (const char *Begin, const char *End) |
| PooledStringPtr | intern (const char *Str) |
| bool | empty () const |
Friends | |
| class | PooledStringPtr |
Classes | |
| struct | PooledString |
Definition at line 43 of file StringPool.h.
| StringPool::StringPool | ( | ) |
Definition at line 19 of file StringPool.cpp.
| StringPool::~StringPool | ( | ) |
Definition at line 21 of file StringPool.cpp.
| PooledStringPtr StringPool::intern | ( | const char * | Begin, | |
| const char * | End | |||
| ) |
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.
Definition at line 25 of file StringPool.cpp.
References llvm::StringMapEntry< ValueTy >::Create(), llvm::StringMapEntry< ValueTy >::getValue(), and PooledStringPtr.
Referenced by intern(), and llvm::Function::setGC().
| PooledStringPtr llvm::StringPool::intern | ( | const char * | Str | ) | [inline] |
intern - Adds a null-terminated 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.
Definition at line 142 of file StringPool.h.
References intern().
| bool llvm::StringPool::empty | ( | ) | const [inline] |
empty - Checks whether the pool is empty. Returns true if so.
Definition at line 76 of file StringPool.h.
Referenced by llvm::Function::clearGC().
friend class PooledStringPtr [friend] |