diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-10 16:37:42 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-10 16:37:42 +0000 |
commit | 3ba415a77040dc9d00e60a6e4ea8376af71c4654 (patch) | |
tree | 268e50618cdfcb6cde9d77620cf833e2947c9151 /lib/VMCore/Module.cpp | |
parent | 9cb52425747b8c73c37e6b0dd3bdc57eec7b1c6f (diff) | |
download | external_llvm-3ba415a77040dc9d00e60a6e4ea8376af71c4654.zip external_llvm-3ba415a77040dc9d00e60a6e4ea8376af71c4654.tar.gz external_llvm-3ba415a77040dc9d00e60a6e4ea8376af71c4654.tar.bz2 |
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/VMCore/Module.cpp')
-rw-r--r-- | lib/VMCore/Module.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp index 3f59995..8331eac 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; } |