Add a portable strerror*() wrapper, llvm::sys::StrError(). This includes the
[oota-llvm.git] / include / llvm / TypeSymbolTable.h
index b95415377e459287176050f57ef22d9883427304..e1459b05794178788e0e975fcd5efdb3017369b7 100644 (file)
@@ -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();
 
 /// @}
@@ -87,7 +87,7 @@ public:
   /// @brief Get a const_iterator to the start of the symbol table
   inline const_iterator begin() const { return tmap.begin(); }
 
-  /// Get an iterator to the end of the symbol talbe. 
+  /// Get an iterator to the end of the symbol table.
   inline iterator end() { return tmap.end(); }
 
   /// Get a const_iterator to the end of the symbol table.
@@ -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.
@@ -113,15 +109,6 @@ public:
   /// @returns the Type that was erased from the symbol table.
   Type* remove(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 remove(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);
-
 /// @}
 /// @name AbstractTypeUser Methods
 /// @{
@@ -147,4 +134,3 @@ private:
 } // End llvm namespace
 
 #endif
-