================
@@ -6295,6 +6295,8 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo
&CallInfo,
DI->EmitFuncDeclForCallSite(
CI, DI->getFunctionType(CalleeDecl, ResTy, Args), CalleeGlobalDecl);
}
+ // Collect call site target information.
+ DI->addCallTarget(CI->getCalledFunction(), CalleeDecl, CI);
----------------
CarlosAlbertoEnciso wrote:
There are 3 items that are required to have a complete entry for the call-site
information:
``Function Name``, ``Metadata Node`` and ``Instruction``. Which they are
collected as a whole set or individually.
Here we are mainly collecting ``CI``, that can complete the entry if we have
collected already ``Metadata Node``.
https://github.com/llvm/llvm-project/pull/167666
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits