aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-28 05:30:29 +0000
committerChris Lattner <sabre@nondot.org>2004-05-28 05:30:29 +0000
commiteaca89b48e446091fbfe53cf4f91146020ba341e (patch)
treeb4b41341542cd2626a45b3148e00d5d44d01843b
parent11b9be5a1a2c3bd24c6cf4749a72c4a97c0040da (diff)
Eliminate this form of SymbolTable::remove. It ignores the type argument
anyway. Add a form that takes a type_iterator for the C backend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13873 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/SymbolTable.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/SymbolTable.h b/include/llvm/SymbolTable.h
index 33b026ea25..13e673cac4 100644
--- a/include/llvm/SymbolTable.h
+++ b/include/llvm/SymbolTable.h
@@ -207,11 +207,10 @@ public:
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.