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

Chris Lattner lattner at cs.uiuc.edu
Thu Jul 8 11:10:02 PDT 2004


Changes in directory llvm/include/llvm:

Type.h updated: 1.47 -> 1.48

---
Log message:

Update comment.
Remove unused forward decl of Value.h
Make Type 32 bytes instead of 36 bytes


---
Diffs of the changes:  (+4 -4)

Index: llvm/include/llvm/Type.h
diff -u llvm/include/llvm/Type.h:1.47 llvm/include/llvm/Type.h:1.48
--- llvm/include/llvm/Type.h:1.47	Sun Jul  4 05:46:49 2004
+++ llvm/include/llvm/Type.h	Thu Jul  8 11:09:38 2004
@@ -15,7 +15,8 @@
 // type is ever created.  Thus seeing if two types are equal is a matter of 
 // doing a trivial pointer comparison.
 //
-// Types, once allocated, are never free'd.
+// Types, once allocated, are never free'd, unless they are an abstract type
+// that is resolved to a more concrete type.
 //
 // Opaque types are simple derived types with no state.  There may be many
 // different Opaque type objects floating around, but two are only considered
@@ -48,7 +49,6 @@
 class PointerType;
 class StructType;
 class SymbolTable;
-class Value;
 
 struct Type {
   ///===-------------------------------------------------------------------===//
@@ -81,9 +81,9 @@
   };
 
 private:
-  TypeID   ID;        // The current base type of this type...
-  unsigned UID;       // The unique ID number for this class
+  TypeID   ID : 8;    // The current base type of this type.
   bool     Abstract;  // True if type contains an OpaqueType
+  unsigned UID;       // The unique ID number for this class
 
   /// RefCount - This counts the number of PATypeHolders that are pointing to
   /// this type.  When this number falls to zero, if the type is abstract and





More information about the llvm-commits mailing list