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

Patch found and provided by Vladimir Merzliakov. Thanks Vladimir!

llvm-svn: 14732
This commit is contained in:
Reid Spencer 2004-07-10 16:37:42 +00:00
parent 27a5454cf0
commit d45c27da89

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;
}