[llvm-branch-commits] [llvm-branch] r133423 - /llvm/branches/type-system-rewrite/lib/VMCore/Type.cpp

Chris Lattner sabre at nondot.org
Sun Jun 19 23:52:41 PDT 2011


Author: lattner
Date: Mon Jun 20 01:52:41 2011
New Revision: 133423

URL: http://llvm.org/viewvc/llvm-project?rev=133423&view=rev
Log:
actually implement removal from the symbol table.

Modified:
    llvm/branches/type-system-rewrite/lib/VMCore/Type.cpp

Modified: llvm/branches/type-system-rewrite/lib/VMCore/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/lib/VMCore/Type.cpp?rev=133423&r1=133422&r2=133423&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/lib/VMCore/Type.cpp (original)
+++ llvm/branches/type-system-rewrite/lib/VMCore/Type.cpp Mon Jun 20 01:52:41 2011
@@ -415,13 +415,12 @@
 void StructType::setName(StringRef Name) {
   if (Name == getName()) return;
 
+  // If this struct already had a name, remove its symbol table entry.
   if (SymbolTableEntry) {
-    // REMOVE 
-    
+    getContext().pImpl->NamedStructTypes.erase(getName());
     SymbolTableEntry = 0;
   }
   
-  
   // If this is just removing the name, we're done.
   if (Name.empty())
     return;





More information about the llvm-branch-commits mailing list