[llvm-commits] CVS: llvm/include/llvm/SymbolTable.h

Chris Lattner lattner at cs.uiuc.edu
Fri May 28 00:34:02 PDT 2004


Changes in directory llvm/include/llvm:

SymbolTable.h updated: 1.33 -> 1.34

---
Log message:

Eliminate this form of SymbolTable::remove.  It ignores the type argument
anyway.  Add a form that takes a type_iterator for the C backend.


---
Diffs of the changes:  (+3 -4)

Index: llvm/include/llvm/SymbolTable.h
diff -u llvm/include/llvm/SymbolTable.h:1.33 llvm/include/llvm/SymbolTable.h:1.34
--- llvm/include/llvm/SymbolTable.h:1.33	Wed May 26 16:46:18 2004
+++ llvm/include/llvm/SymbolTable.h	Fri May 28 00:30:29 2004
@@ -207,11 +207,10 @@
     return removeEntry(PI, PI->second.find(Name));
   }
 
-  /// Remove a type with the specified name from the symbol table.
+  /// Remove a type at the specified position in the symbol table.
   /// @returns the removed Type.
-  /// @brief Remove a named tyep from the symbol table.
-  inline Type* remove(const std::string& Name, Type* T ) {
-    return removeEntry( tmap.find(Name) );
+  inline Type* remove(type_iterator TI) {
+    return removeEntry(TI);
   }
 
   /// Removes a specific value from the symbol table. 





More information about the llvm-commits mailing list