summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-02-05 01:37:44 +0000
committerChris Lattner <sabre@nondot.org>2005-02-05 01:37:44 +0000
commit9cd92de64b15cf770533003ede6bb635ae84669f (patch)
treefe8097b65e135af871f66c05817184224411f38f /llvm
parentf60c170ea5df891cd2e7392f5dca1cc8dca9b83f (diff)
downloadbcm5719-llvm-9cd92de64b15cf770533003ede6bb635ae84669f.tar.gz
bcm5719-llvm-9cd92de64b15cf770533003ede6bb635ae84669f.zip
SubclassID is really a small field. Split it into half and let subclasses
play with the unused part. llvm-svn: 20043
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Value.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/include/llvm/Value.h b/llvm/include/llvm/Value.h
index 46257cc7a34..267b9eb1b3e 100644
--- a/llvm/include/llvm/Value.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud