mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-19 17:47:38 +00:00
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:
parent
27a5454cf0
commit
d45c27da89
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user