[clang] [llvm] [clang][DebugInfo] Add virtuality call-site target information in DWARF. (PR #167666)

Carlos Alberto Enciso via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 19 04:50:56 PST 2026


================
@@ -4978,6 +4978,24 @@ void CGDebugInfo::EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
     Fn->setSubprogram(SP);
 }
 
+void CGDebugInfo::addCallTarget(const FunctionDecl *FD, llvm::CallBase *CI) {
+  if (!generateVirtualCallSite())
+    return;
+
+  if (!FD)
+    return;
+
+  // Record only indirect calls.
----------------
CarlosAlbertoEnciso wrote:

Removed the comment.

https://github.com/llvm/llvm-project/pull/167666


More information about the cfe-commits mailing list