For PR351:
[oota-llvm.git] / include / llvm / SymbolTable.h
index 34d4c1123516e4aef6a6f370b0ef5fe5383eb6b1..7e6efe892441fc09a77508227e119971e45c6f20 100644 (file)
@@ -34,7 +34,7 @@ namespace llvm {
 /// There is a TypeMap typedef that is the mapping of names to Types. 
 /// Similarly there is a ValueMap typedef that is the mapping of 
 /// names to Values. Finally, there is a PlaneMap typedef that is the
-/// mapping of types to planes of ValueMap. THis is the basic structure
+/// mapping of types to planes of ValueMap. This is the basic structure
 /// of the symbol table. When you call type_begin() you're asking
 /// for an iterator at the start of the TypeMap. When you call
 /// plane_begin(), you're asking for an iterator at the start of 
@@ -119,7 +119,7 @@ public:
   unsigned type_size(const Type *TypeID) const;
 
   /// @brief The number of name/type pairs is returned.
-  inline unsigned num_types() const { return tmap.size(); }
+  inline unsigned num_types() const { return (unsigned)tmap.size(); }
 
   /// Finds the value \p val in the symbol table and returns its
   /// name. Only the type plane associated with the type of \p val
@@ -159,9 +159,8 @@ public:
     insertEntry(Val->getName(), Val->getType(), Val);
   }
 
-  /// Inserts a constant or type into the symbol table with the specified
-  /// name. There can be a many to one mapping between names and constants
-  /// or types.
+  /// Inserts a constant into the symbol table with the specified
+  /// name. There can be a many to one mapping between names and constants.
   /// @brief Insert a constant or type.
   inline void insert(const std::string &Name, Value *Val) {
     assert(Val && "Can't insert null type into symbol table!");