MCPcopy Create free account
hub / github.com/Samsung/UTopia / getModule

Method getModule

tests/TestHelper.cpp:175–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175const 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
189TargetLib &TATestHelper::getTargetLib() { return getAnalyzer().getTargetLib(); }
190

Callers

nothing calls this directly

Calls 2

getLLVMModuleMethod · 0.80
getSourceCollectionMethod · 0.80

Tested by

no test coverage detected