diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-07-08 22:31:37 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-07-08 22:31:37 +0000 |
| commit | 2cb4f45a1d5a7b13e605bbf83477a61b2963baf7 (patch) | |
| tree | 6d73f5cbe2736aa4695099e1df9be5d9b3f905a0 /llvm | |
| parent | 753026dae000705c3fcb96018d60718a431e794f (diff) | |
| download | bcm5719-llvm-2cb4f45a1d5a7b13e605bbf83477a61b2963baf7.tar.gz bcm5719-llvm-2cb4f45a1d5a7b13e605bbf83477a61b2963baf7.zip | |
Eliminate the UID field in the Type class, bringing it down to 28 bytes.
llvm-svn: 14709
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Type.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/llvm/include/llvm/Type.h b/llvm/include/llvm/Type.h index 7c28b03e8eb..39b73ce81aa 100644 --- a/llvm/include/llvm/Type.h +++ b/llvm/include/llvm/Type.h @@ -83,7 +83,6 @@ struct Type { 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 @@ protected: 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 @@ public: /// 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 @@ public: // 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... |

