aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-24 00:59:53 +0000
committerDan Gohman <gohman@apple.com>2009-07-24 00:59:53 +0000
commit234a03d2ee5f53c2c6ffa77d02da644dfb769975 (patch)
treec9c0be5da348784d969854c708116b4b53ab662a /include/llvm
parentde7e51b929aafdc6e8681605b02239efa6914c7f (diff)
downloadexternal_llvm-234a03d2ee5f53c2c6ffa77d02da644dfb769975.zip
external_llvm-234a03d2ee5f53c2c6ffa77d02da644dfb769975.tar.gz
external_llvm-234a03d2ee5f53c2c6ffa77d02da644dfb769975.tar.bz2
Give the SCEV class a SubclassData field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Analysis/ScalarEvolution.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h
index a629df1..cfa504d 100644
--- a/include/llvm/Analysis/ScalarEvolution.h
+++ b/include/llvm/Analysis/ScalarEvolution.h
@@ -50,15 +50,22 @@ namespace llvm {
/// directly.
///
class SCEV : public FastFoldingSetNode {
- const unsigned SCEVType; // The SCEV baseclass this node corresponds to
+ // The SCEV baseclass this node corresponds to
+ const unsigned short SCEVType;
+ protected:
+ /// SubclassData - This field is initialized to zero and may be used in
+ /// subclasses to store miscelaneous information.
+ unsigned short SubclassData;
+
+ private:
SCEV(const SCEV &); // DO NOT IMPLEMENT
void operator=(const SCEV &); // DO NOT IMPLEMENT
protected:
virtual ~SCEV();
public:
explicit SCEV(const FoldingSetNodeID &ID, unsigned SCEVTy) :
- FastFoldingSetNode(ID), SCEVType(SCEVTy) {}
+ FastFoldingSetNode(ID), SCEVType(SCEVTy), SubclassData(0) {}
unsigned getSCEVType() const { return SCEVType; }