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

Method getFunction

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

Get the corresponding Function based on its name

Source from the content-addressed store, hash-verified

304
305 /// Get the corresponding Function based on its name
306 inline const Function* getFunction(const std::string& name)
307 {
308 Function* fun = nullptr;
309
310 for (u32_t i = 0; i < llvmModuleSet->getModuleNum(); ++i)
311 {
312 Module* mod = llvmModuleSet->getModule(i);
313 fun = mod->getFunction(name);
314 if (fun)
315 {
316 return fun;
317 }
318 }
319 return nullptr;
320 }
321
322 /// Get the corresponding Function based on its name
323 const FunObjVar* getFunObjVar(const std::string& name);

Callers 8

processFunBodyMethod · 0.45
handleExtCallMethod · 0.45
visitPHINodeMethod · 0.45
fwInferObjTypeMethod · 0.45
buildFunToFunMapMethod · 0.45
getFunObjVarMethod · 0.45

Calls 2

getModuleNumMethod · 0.80
getModuleMethod · 0.80

Tested by

no test coverage detected