[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
Wed Jan 28 06:20:49 PST 2026


================
@@ -0,0 +1,112 @@
+// RUN: %clang_cc1 -triple=x86_64-linux -disable-llvm-passes -emit-llvm \
+// RUN:            -debug-info-kind=constructor -dwarf-version=5 -O1 %s \
+// RUN:            -o - | FileCheck %s -check-prefix CHECK-EDGES
+
+// The following are identified edge cases involving the method being called:
+// 1) Method is declared but not defined in current CU.
+// 2) Pure virtual method but not defined in current CU.
+// 3) Virtual method defined very deeply.
----------------
CarlosAlbertoEnciso wrote:

Replaced the comment with:
`3) Virtual method defined in a deeply nested structure hierarchy.`
It tests that we generate a `call_target` metadata entry at each level of the structure hierarchy.

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


More information about the cfe-commits mailing list