diff options
author | Chris Lattner <sabre@nondot.org> | 2005-02-05 01:37:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-02-05 01:37:44 +0000 |
commit | 8f0d40392658fd1ccc057198bd5a6f1c85be5425 (patch) | |
tree | ad51a5d5d2a3d83867597951c836fb209337b97c /include/llvm/Value.h | |
parent | b05a76c67dd1010c63bcd3b22b0cc31ea0651a06 (diff) | |
download | external_llvm-8f0d40392658fd1ccc057198bd5a6f1c85be5425.zip external_llvm-8f0d40392658fd1ccc057198bd5a6f1c85be5425.tar.gz external_llvm-8f0d40392658fd1ccc057198bd5a6f1c85be5425.tar.bz2 |
SubclassID is really a small field. Split it into half and let subclasses
play with the unused part.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r-- | include/llvm/Value.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h index 46257cc..267b9eb 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -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; |