[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 05:54:53 PST 2025


================
@@ -5082,8 +5180,13 @@ void CGDebugInfo::EmitFunctionEnd(CGBuilderTy &Builder, llvm::Function *Fn) {
   }
   FnBeginRegionCount.pop_back();
 
-  if (Fn && Fn->getSubprogram())
+  if (Fn && Fn->getSubprogram()) {
+    // For each call instruction emitted, add the call site target metadata.
----------------
CarlosAlbertoEnciso wrote:

Comment reworded:
```
    // As the debug info for the given function has been emitted, add its
    // name and node to the call site target information.
```

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


More information about the llvm-commits mailing list