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

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 2 11:29:04 PDT 2003


Changes in directory llvm/include/llvm:

Type.h updated: 1.25 -> 1.26

---
Log message:

The description is no longer stored directly in the type.


---
Diffs of the changes:

Index: llvm/include/llvm/Type.h
diff -u llvm/include/llvm/Type.h:1.25 llvm/include/llvm/Type.h:1.26
--- llvm/include/llvm/Type.h:1.25	Thu Aug 21 17:08:59 2003
+++ llvm/include/llvm/Type.h	Tue Sep  2 11:28:03 2003
@@ -72,7 +72,6 @@
 private:
   PrimitiveID ID;        // The current base type of this type...
   unsigned    UID;       // The unique ID number for this class
-  std::string Desc;      // The printed name of the string...
   bool        Abstract;  // True if type contains an OpaqueType
   bool        Recursive; // True if the type is recursive
 
@@ -81,10 +80,6 @@
   Type(const std::string &Name, PrimitiveID id);
   virtual ~Type() {}
 
-  /// When types are refined, they update their description to be more concrete.
-  ///
-  inline void setDescription(const std::string &D) { Desc = D; }
-  
   /// setName - Associate the name with this type in the symbol table, but don't
   /// set the local name to be equal specified name.
   ///
@@ -119,7 +114,7 @@
   inline unsigned getUniqueID() const { return UID; }
 
   /// getDescription - Return the string representation of the type...
-  inline const std::string &getDescription() const { return Desc; }
+  const std::string &getDescription() const;
 
   /// isSigned - Return whether an integral numeric type is signed.  This is
   /// true for SByteTy, ShortTy, IntTy, LongTy.  Note that this is not true for





More information about the llvm-commits mailing list