[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 04:51:23 PST 2026


================
@@ -0,0 +1,77 @@
+// 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-DERIVED
+
+// Simple base and derived class with virtual and static methods:
+// We check for a generated 'call_target' for:
+// - 'one', 'two' and 'three'.
----------------
CarlosAlbertoEnciso wrote:

You are right. Removing `two`, as it leads the same code path as `one` and `three` is tested as not virtual. 

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


More information about the cfe-commits mailing list