[llvm-commits] CVS: llvm/include/llvm/Type.h
Chris Lattner
lattner at cs.uiuc.edu
Thu Jul 8 17:32:01 PDT 2004
Changes in directory llvm/include/llvm:
Type.h updated: 1.50 -> 1.51
---
Log message:
Eliminate the UID field in the Type class, bringing it down to 28 bytes.
---
Diffs of the changes: (+1 -11)
Index: llvm/include/llvm/Type.h
diff -u llvm/include/llvm/Type.h:1.50 llvm/include/llvm/Type.h:1.51
--- llvm/include/llvm/Type.h:1.50 Thu Jul 8 12:45:18 2004
+++ llvm/include/llvm/Type.h Thu Jul 8 17:31:37 2004
@@ -83,7 +83,6 @@
private:
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
@@ -97,7 +96,6 @@
Type(const std::string& Name, TypeID id);
virtual ~Type() {}
-
/// Types can become nonabstract later, if they are refined.
///
inline void setAbstract(bool Val) { Abstract = Val; }
@@ -143,13 +141,6 @@
///
inline TypeID getTypeID() const { return ID; }
- /// getUniqueID - Returns the UID of the type. This can be thought of as a
- /// small integer version of the pointer to the type class. Two types that
- /// are structurally different have different UIDs. This can be used for
- /// indexing types into an array.
- ///
- inline unsigned getUniqueID() const { return UID; }
-
/// getDescription - Return the string representation of the type...
const std::string &getDescription() const;
@@ -264,9 +255,8 @@
// instances of Type.
//
- /// getPrimitiveType/getUniqueIDType - Return a type based on an identifier.
+ /// getPrimitiveType - Return a type based on an identifier.
static const Type *getPrimitiveType(TypeID IDNumber);
- static const Type *getUniqueIDType(unsigned UID);
//===--------------------------------------------------------------------===//
// These are the builtin types that are always available...
More information about the llvm-commits
mailing list