[clang] [llvm] [clang][DebugInfo] Add virtual call-site target information in DWARF. (PR #167666)
Carlos Alberto Enciso via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 27 03:14:33 PST 2025
================
@@ -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
More information about the cfe-commits
mailing list