[clang] [clang][CodeGen] Attach a single callgraph type identifier to function definitions (PR #230838)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 2 09:53:15 PST 2026


================
@@ -0,0 +1,21 @@
+// Tests that a function definition carries a single call graph section type
+// identifier: its declaration and its body are annotated separately, and the
+// second annotation must replace the first one.
+
+// RUN: %clang_cc1 -triple x86_64-unknown-linux -fexperimental-call-graph-section \
+// RUN: -emit-llvm -o - %s | FileCheck %s
+
+// RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -fexperimental-call-graph-section \
+// RUN: -emit-llvm -o - %s | FileCheck %s
----------------
ilovepi wrote:

These can be one line.

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


More information about the cfe-commits mailing list