[llvm-branch-commits] [llvm][AsmPrinter] Emit call graph section (PR #87576)
Paul Kirth via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Dec 11 09:41:36 PST 2024
================
@@ -0,0 +1,73 @@
+; Tests that we store the type identifiers in .callgraph section of the binary.
+
+; RUN: llc --call-graph-section -filetype=obj -o - < %s | \
+; RUN: llvm-readelf -x .callgraph - | FileCheck %s
+
+target triple = "x86_64-unknown-linux-gnu"
----------------
ilovepi wrote:
You shouldn't need the triple, since you can set those details in the `llc` command. I'm not totally sure you even need to specify though, since I think the support works regardless of the target, right? or is this an ELF only feature?
If you do need to test some arch specific things, then the test probably needs either a "REQUIRES: ` line for the target arch, or to be in a arch specific folder.
https://github.com/llvm/llvm-project/pull/87576
More information about the llvm-branch-commits
mailing list