14 #define DEBUG_TYPE "valuesymtab"
25 #ifndef NDEBUG // Only do this in -g mode...
27 dbgs() <<
"Value still in symbol table! Type = '"
28 << *VI->getValue()->getType() <<
"' Name = '"
29 << VI->getKeyData() <<
"'\n";
30 assert(vmap.
empty() &&
"Values remain in symbol table!");
36 void ValueSymbolTable::reinsertValue(
Value* V) {
37 assert(V->
hasName() &&
"Can't insert nameless Value into symbol table");
40 if (vmap.
insert(V->Name)) {
51 unsigned BaseSize = UniqueName.size();
54 UniqueName.resize(BaseSize);
69 void ValueSymbolTable::removeValueName(
ValueName *V) {
114 I->getValue()->dump();
const ValueTy & getValue() const
iterator begin()
Get an iterator that from the beginning of the symbol table.
size_t size() const
size - Get the string size.
void remove(MapEntryTy *KeyValue)
void setValue(const ValueTy &V)
void dump() const
Print out symbol table on stderr.
StringRef getName() const
void Destroy(AllocatorTy &Allocator)
iterator end()
Get an iterator to the end of the symbol table.
bool insert(MapEntryTy *KeyValue)
raw_ostream & dbgs()
dbgs - Return a circular-buffered debug stream.
MapEntryTy & GetOrCreateValue(StringRef Key, InitTy Val)
LLVM Value Representation.