From: Reid Spencer Date: Sat, 10 Jul 2004 16:37:42 +0000 (+0000) Subject: Replace use of defunct Type::setName method with SymbolTable::insert. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3ba415a77040dc9d00e60a6e4ea8376af71c4654;p=oota-llvm.git 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 --- diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp index 3f599958985..8331eacd691 100644 --- a/lib/VMCore/Module.cpp +++ b/lib/VMCore/Module.cpp @@ -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; }