summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-10 16:37:42 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-10 16:37:42 +0000
commit3ba415a77040dc9d00e60a6e4ea8376af71c4654 (patch)
tree268e50618cdfcb6cde9d77620cf833e2947c9151 /lib
parent9cb52425747b8c73c37e6b0dd3bdc57eec7b1c6f (diff)
downloadllvm-3ba415a77040dc9d00e60a6e4ea8376af71c4654.tar.gz
llvm-3ba415a77040dc9d00e60a6e4ea8376af71c4654.tar.bz2
llvm-3ba415a77040dc9d00e60a6e4ea8376af71c4654.tar.xz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/Module.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp
index 3f59995898..8331eacd69 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;
}