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

Chris Lattner lattner at cs.uiuc.edu
Sat Mar 5 21:56:15 PST 2005



Changes in directory llvm/include/llvm:

SymbolTable.h updated: 1.46 -> 1.47
---
Log message:

the only caller of insertEntry is insert, inline it and remove insertEntry


---
Diffs of the changes:  (+1 -7)

 SymbolTable.h |    8 +-------
 1 files changed, 1 insertion(+), 7 deletions(-)


Index: llvm/include/llvm/SymbolTable.h
diff -u llvm/include/llvm/SymbolTable.h:1.46 llvm/include/llvm/SymbolTable.h:1.47
--- llvm/include/llvm/SymbolTable.h:1.46	Sat Mar  5 23:50:49 2005
+++ llvm/include/llvm/SymbolTable.h	Sat Mar  5 23:56:02 2005
@@ -143,10 +143,7 @@
   /// allows a type with an existing entry in the symbol table to get
   /// a new name.
   /// @brief Insert a type under a new name.
-  inline void insert(const std::string &Name, const Type *Typ) {
-    assert(Typ && "Can't insert null type into symbol table!");
-    insertEntry(Name, Typ);
-  }
+  void insert(const std::string &Name, const Type *Typ);
 
   /// This method removes a named value from the symbol table. The
   /// type and name of the Value are extracted from \p N and used to
@@ -276,9 +273,6 @@
   /// @brief Insert a value into the symbol table with the specified name.
   void insertEntry(const std::string &Name, const Type *Ty, Value *V);
 
-  /// @brief Insert a type into the symbol table with the specified name.
-  void insertEntry(const std::string &Name, const Type *T);
-
   /// This function is called when one of the types in the type plane 
   /// is refined.
   virtual void refineAbstractType(const DerivedType *OldTy, const Type *NewTy);






More information about the llvm-commits mailing list