| 394 | } |
| 395 | |
| 396 | RuntimeTarget LinkedLibraryHolder::getTarget(const std::string &name) { |
| 397 | if (!targetInitialized) |
| 398 | resetTarget(); |
| 399 | auto iter = targets.find(name); |
| 400 | if (iter == targets.end()) |
| 401 | throw std::runtime_error("Invalid target name (" + name + ")."); |
| 402 | |
| 403 | return iter->second; |
| 404 | } |
| 405 | |
| 406 | RuntimeTarget LinkedLibraryHolder::getTarget() { |
| 407 | if (!targetInitialized) |
no test coverage detected