MCPcopy Create free account
hub / github.com/SVF-tools/SVF / getMainLLVMModule

Method getMainLLVMModule

svf-llvm/include/SVF-LLVM/LLVMModule.h:366–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364 }
365
366 Module* getMainLLVMModule() const
367 {
368 assert(!empty() && "empty LLVM module!!");
369 for (size_t i = 0; i < getModuleNum(); ++i)
370 {
371 Module& module = getModuleRef(i);
372 if (module.getName().str() != ExtAPI::getExtAPI()->getExtBcPath())
373 {
374 return &module;
375 }
376 }
377 assert(false && "no main module found!");
378 return nullptr;
379 }
380
381 LLVMContext& getContext() const
382 {

Callers 5

getMemcpyFieldsFunction · 0.80
addComplexConsForExtMethod · 0.80
computeGepOffsetMethod · 0.80
getBaseValueForExtArgMethod · 0.80
addSVFTypeInfoMethod · 0.80

Calls 1

getExtBcPathMethod · 0.80

Tested by

no test coverage detected