[llvm-commits] CVS: llvm/lib/VMCore/Module.cpp

LLVM llvm at cs.uiuc.edu
Sat Jul 10 11:39:01 PDT 2004


Changes in directory llvm/lib/VMCore:

Module.cpp updated: 1.51 -> 1.52

---
Log message:

Replace use of defunct Type::setName method with SymbolTable::insert.
Patch found and provided by Vladimir Merzliakov. Thanks Vladimir!


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/VMCore/Module.cpp
diff -u llvm/lib/VMCore/Module.cpp:1.51 llvm/lib/VMCore/Module.cpp:1.52
--- llvm/lib/VMCore/Module.cpp:1.51	Sun Jul  4 06:53:53 2004
+++ llvm/lib/VMCore/Module.cpp	Sat Jul 10 11:37:42 2004
@@ -251,7 +251,7 @@
   
   // 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;
 }





More information about the llvm-commits mailing list