mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Add convenience class for working with eh.exception calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112698 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
64a4e9a94c
commit
248e7592b5
@ -269,6 +269,20 @@ namespace llvm {
|
||||
}
|
||||
};
|
||||
|
||||
/// EHExceptionInst - This represents the llvm.eh.exception instruction.
|
||||
///
|
||||
class EHExceptionInst : public IntrinsicInst {
|
||||
public:
|
||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||
static inline bool classof(const EHExceptionInst *) { return true; }
|
||||
static inline bool classof(const IntrinsicInst *I) {
|
||||
return I->getIntrinsicID() == Intrinsic::eh_exception;
|
||||
}
|
||||
static inline bool classof(const Value *V) {
|
||||
return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
|
||||
}
|
||||
};
|
||||
|
||||
/// EHSelectorInst - This represents the llvm.eh.selector instruction.
|
||||
///
|
||||
class EHSelectorInst : public IntrinsicInst {
|
||||
|
Loading…
x
Reference in New Issue
Block a user