- static inline bool classof(const DbgInfoIntrinsic *) { return true; }
- static inline bool classof(const CallInst *I) {
- if (const Function *CF = I->getCalledFunction())
- switch (CF->getIntrinsicID()) {
- case Intrinsic::dbg_stoppoint:
- case Intrinsic::dbg_region_start:
- case Intrinsic::dbg_region_end:
- case Intrinsic::dbg_func_start:
- case Intrinsic::dbg_declare:
- return true;
- default: break;
- }
- return false;
+ static inline bool classof(const IntrinsicInst *I) {
+ switch (I->getIntrinsicID()) {
+ case Intrinsic::dbg_declare:
+ case Intrinsic::dbg_value:
+ return true;
+ default: return false;
+ }