[clang] [llvm] [clang][DebugInfo] Add virtual call-site target information in DWARF. (PR #167666)
Carlos Alberto Enciso via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 26 06:23:56 PST 2025
================
@@ -2430,6 +2430,9 @@ llvm::DISubprogram *CGDebugInfo::CreateCXXMemberFunction(
SPCache[Method->getCanonicalDecl()].reset(SP);
+ // Add the method declaration as a call target.
+ addCallTarget(MethodLinkageName, SP, /*CI=*/nullptr);
----------------
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``.
They are collected as a whole set or individually. Here we have only ``Function Name``, ``Metadata Node``. The ``Instruction`` was collected or will be collected, in order to have the full set.
https://github.com/llvm/llvm-project/pull/167666
More information about the llvm-commits
mailing list