X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FTypeSymbolTable.h;h=f4e641002825f43a11b677d6ac6ecf08bce8ff5d;hb=2d0d59380a0f22d32782fb9837b57ffc25c8d9f1;hp=c9f8d3107b5245b01d9085c7ef9ce9b7f96d2f9d;hpb=9e3264a1eaf7ed2340859938ab386985a413d602;p=oota-llvm.git diff --git a/include/llvm/TypeSymbolTable.h b/include/llvm/TypeSymbolTable.h index c9f8d3107b5..f4e64100282 100644 --- a/include/llvm/TypeSymbolTable.h +++ b/include/llvm/TypeSymbolTable.h @@ -2,8 +2,8 @@ // // The LLVM Compiler Infrastructure // -// This file was developed by Reid Spencer. It is distributed under the -// University of Illinois Open Source License. See LICENSE.TXT for details. +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // @@ -43,7 +43,7 @@ public: /// @{ public: - TypeSymbolTable() {} + TypeSymbolTable():LastUnique(0) {} ~TypeSymbolTable(); /// @} @@ -98,10 +98,6 @@ public: /// @{ public: - /// This method will strip the symbol table of its names - /// @brief Strip the symbol table. - bool strip(); - /// Inserts a type into the symbol table with the specified name. There can be /// a many-to-one mapping between names and types. This method allows a type /// with an existing entry in the symbol table to get a new name. @@ -111,16 +107,7 @@ public: /// Remove a type at the specified position in the symbol table. /// @returns the removed Type. /// @returns the Type that was erased from the symbol table. - Type* erase(iterator TI); - - /// Remove a specific Type from the symbol table. This isn't fast, linear - /// search, O(n), algorithm. - /// @returns true if the erase was successful (TI was found) - bool erase(Type* TI); - - /// Rename a type. This ain't fast, we have to linearly search for it first. - /// @returns true if the rename was successful (type was found) - bool rename(Type* T, const std::string& new_name); + Type* remove(iterator TI); /// @} /// @name AbstractTypeUser Methods