mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-11 23:37:39 +00:00
Give the SCEV class a SubclassData field.
llvm-svn: 76927
This commit is contained in:
parent
fba3931c31
commit
7b9e8b26db
@ -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; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user