mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
I demand the ability to say 'if (isa<Value>(V))'!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15340 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
365f54c7bc
commit
ff8c1b3dc6
@ -136,6 +136,11 @@ public:
|
||||
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:
|
||||
/// FIXME: this is a gross hack, needed by another gross hack. Eliminate!
|
||||
void setValueType(unsigned VT) { SubclassID = VT; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user