| 107 | } |
| 108 | |
| 109 | std::set<llvm::Instruction *> RDSpace::nextInCaller(const llvm::Function &F) { |
| 110 | std::set<llvm::Instruction *> Result; |
| 111 | |
| 112 | auto Iter = CallerMap.find(const_cast<llvm::Function *>(&F)); |
| 113 | if (Iter == CallerMap.end()) |
| 114 | return {}; |
| 115 | |
| 116 | for (auto *CB : Iter->second) |
| 117 | Result.insert(CB); |
| 118 | |
| 119 | return Result; |
| 120 | } |
| 121 | |
| 122 | std::set<llvm::Instruction *> RDSpace::nextInLink(const llvm::Function &F) { |
| 123 | auto Iter = LinkMap.find(const_cast<llvm::Function *>(&F)); |
no test coverage detected