Replace use of defunct Type::setName method with SymbolTable::insert.

Patch found and provided by Vladimir Merzliakov. Thanks Vladimir!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14732 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-07-10 16:37:42 +00:00
parent 9cb5242574
commit 3ba415a770

View File

@ -251,7 +251,7 @@ bool Module::addTypeName(const std::string &Name, const Type *Ty) {
// Not in symbol table? Set the name with the Symtab as an argument so the
// type knows what to update...
((Value*)Ty)->setName(Name, &ST);
ST.insert(Name, Ty);
return false;
}