| 11 | TargetAPIFinder::TargetAPIFinder(std::set<Function *> APIs) : APIs(APIs) {} |
| 12 | |
| 13 | std::set<Function *> TargetAPIFinder::findAPIs(std::vector<Function *> Funcs) { |
| 14 | std::set<Function *> Result; |
| 15 | find(Funcs, TargetCallees, Result); |
| 16 | return Result; |
| 17 | } |
| 18 | |
| 19 | std::set<CallBase *> |
| 20 | TargetAPIFinder::findAPICallers(std::vector<Function *> Funcs) { |