X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FTypeSymbolTable.h;h=abe312ec242428a7e48c775b5a929c8f4c424fe1;hb=f0338331098e2d1c887a0a6b4cf87f1ddfd2b792;hp=6511be03db08cc7f33bcdc185ed447f6290d9e43;hpb=eb7116bb08a99897c69570a3789af97343bff9f2;p=oota-llvm.git diff --git a/include/llvm/TypeSymbolTable.h b/include/llvm/TypeSymbolTable.h index 6511be03db0..abe312ec242 100644 --- a/include/llvm/TypeSymbolTable.h +++ b/include/llvm/TypeSymbolTable.h @@ -2,10 +2,8 @@ // // The LLVM Compiler Infrastructure // -// This file was developed by Reid Spencer based on the original SymbolTable -// implemented by the LLVM Research Group and re-written by Reid Spencer. -// It is distributed under the University of Illinois Open Source License. -// See LICENSE.TXT for details. +// This file was developed by Reid Spencer. It is distributed under the +// University of Illinois Open Source License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // @@ -100,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. @@ -113,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 @@ -140,7 +125,7 @@ private: /// @{ private: TypeMap tmap; ///< This is the mapping of names to types. - mutable unsigned long LastUnique; ///< Counter for tracking unique names + mutable uint32_t LastUnique; ///< Counter for tracking unique names /// @}