[llvm-commits] CVS: llvm/include/llvm/Value.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Feb 4 17:37:59 PST 2005
Changes in directory llvm/include/llvm:
Value.h updated: 1.69 -> 1.70
---
Log message:
SubclassID is really a small field. Split it into half and let subclasses
play with the unused part.
---
Diffs of the changes: (+7 -1)
Value.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Value.h
diff -u llvm/include/llvm/Value.h:1.69 llvm/include/llvm/Value.h:1.70
--- llvm/include/llvm/Value.h:1.69 Mon Jan 31 19:21:51 2005
+++ llvm/include/llvm/Value.h Fri Feb 4 19:37:44 2005
@@ -41,7 +41,13 @@
/// 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;
More information about the llvm-commits
mailing list