-// A hack to ensure that the IntrinsicInst.cpp file gets added as a dependency
-// of any file that
-extern char LinkIntrinsicInstStub;
-static IncludeFile LinkIntrinsicInst(&LinkIntrinsicInstStub);
-
+ /// EHSelectorInst - This represents the llvm.eh.selector instruction.
+ ///
+ struct EHSelectorInst : public IntrinsicInst {
+ // Methods for support type inquiry through isa, cast, and dyn_cast:
+ static inline bool classof(const EHSelectorInst *) { return true; }
+ static inline bool classof(const IntrinsicInst *I) {
+ return I->getIntrinsicID() == Intrinsic::eh_selector_i32 ||
+ I->getIntrinsicID() == Intrinsic::eh_selector_i64;
+ }
+ static inline bool classof(const Value *V) {
+ return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V));
+ }
+ };
+