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

Method getFunc

lib/tcanalysis/TCTExtractor.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34const llvm::Function *TCTExtractor::getFunc(const FunctionDecl *D) const {
35 if (!D)
36 return nullptr;
37
38 auto Names = util::getMangledNames(*D);
39 if (Names.size() != 1)
40 return nullptr;
41
42 const auto &M = SrcCollection.getLLVMModule();
43 return M.getFunction(Names[0]);
44}
45
46const FunctionDecl *
47TCTExtractor::getDefinedFuncDecl(const clang::Expr *E) const {

Callers

nothing calls this directly

Calls 4

getMangledNamesFunction · 0.85
sizeMethod · 0.80
getLLVMModuleMethod · 0.80
getFunctionMethod · 0.80

Tested by

no test coverage detected