| 173 | } |
| 174 | |
| 175 | const llvm::Module *TATestHelper::getModule() const { |
| 176 | if (Compile && Compile->getLLVMModule()) |
| 177 | return Compile->getLLVMModule(); |
| 178 | |
| 179 | if (!Analyzer) |
| 180 | return nullptr; |
| 181 | |
| 182 | auto *SC = Analyzer->getSourceCollection(); |
| 183 | if (!SC) |
| 184 | return nullptr; |
| 185 | |
| 186 | return &SC->getLLVMModule(); |
| 187 | } |
| 188 | |
| 189 | TargetLib &TATestHelper::getTargetLib() { return getAnalyzer().getTargetLib(); } |
| 190 |
nothing calls this directly
no test coverage detected