diff options
author | Duncan Sands <baldrick@free.fr> | 2010-09-01 09:26:00 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-09-01 09:26:00 +0000 |
commit | 248e7592b5d7ccba5def625300960a00dddd6e55 (patch) | |
tree | f4481c88755d755440e9fd04c95e292564bd9e0e /include/llvm/IntrinsicInst.h | |
parent | 64a4e9a94ce78d7791df884583580754bc0704d2 (diff) | |
download | external_llvm-248e7592b5d7ccba5def625300960a00dddd6e55.zip external_llvm-248e7592b5d7ccba5def625300960a00dddd6e55.tar.gz external_llvm-248e7592b5d7ccba5def625300960a00dddd6e55.tar.bz2 |
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
Diffstat (limited to 'include/llvm/IntrinsicInst.h')
-rw-r--r-- | include/llvm/IntrinsicInst.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/llvm/IntrinsicInst.h b/include/llvm/IntrinsicInst.h index 0c69e07..a17fa9c 100644 --- a/include/llvm/IntrinsicInst.h +++ b/include/llvm/IntrinsicInst.h @@ -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 { |