SubclassID is really a small field. Split it into half and let subclasses
authorChris Lattner <sabre@nondot.org>
Sat, 5 Feb 2005 01:37:44 +0000 (01:37 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 5 Feb 2005 01:37:44 +0000 (01:37 +0000)
play with the unused part.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20043 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Value.h

index 46257cc7a347e353dd1599c7db682988776549d4..267b9eb1b3e263d20d9cf262e5791b568a5e957c 100644 (file)
@@ -41,7 +41,13 @@ class SymbolTable;
 /// as operands to other values.
 ///
 class Value {
-  unsigned SubclassID;               // Subclass identifier (for isa/dyn_cast)
+  unsigned short SubclassID;         // Subclass identifier (for isa/dyn_cast)
+protected:
+  /// SubclassData - This member is defined by this class, but is not used for
+  /// anything.  Subclasses can use it to hold whatever state they find useful.
+  /// This field is initialized to zero by the ctor.
+  unsigned short SubclassData;
+private:
   PATypeHolder Ty;
   Use *UseList;
   std::string Name;