| 75 | } |
| 76 | |
| 77 | std::set<llvm::Function *> |
| 78 | UTAnalyzer::getLLVMFunctions(const std::set<std::string> &FuncNames) const { |
| 79 | if (!Loader) |
| 80 | return {}; |
| 81 | |
| 82 | std::set<llvm::Function *> Result; |
| 83 | const auto &M = Loader->getSourceCollection().getLLVMModule(); |
| 84 | for (const auto &FuncName : FuncNames) { |
| 85 | const auto *F = M.getFunction(FuncName); |
| 86 | if (!F) |
| 87 | continue; |
| 88 | |
| 89 | Result.insert(const_cast<llvm::Function *>(F)); |
| 90 | } |
| 91 | return Result; |
| 92 | } |
| 93 | |
| 94 | void UTAnalyzer::initialize(std::string UTType) { |
| 95 | if (!Loader) |
nothing calls this directly
no test coverage detected