forked from OSchip/llvm-project
I demand the ability to say 'if (isa<Value>(V))'!
llvm-svn: 15340
This commit is contained in:
parent
b10778dc07
commit
5af538f6aa
|
@ -136,6 +136,11 @@ public:
|
||||||
return SubclassID;
|
return SubclassID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||||
|
static inline bool classof(const Value *V) {
|
||||||
|
return true; // Values are always values.
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/// FIXME: this is a gross hack, needed by another gross hack. Eliminate!
|
/// FIXME: this is a gross hack, needed by another gross hack. Eliminate!
|
||||||
void setValueType(unsigned VT) { SubclassID = VT; }
|
void setValueType(unsigned VT) { SubclassID = VT; }
|
||||||
|
|
Loading…
Reference in New Issue