[llvm] [gSYM] Add support merged functions in gSYM format (PR #101604)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 2 13:25:43 PDT 2024


================
@@ -0,0 +1,740 @@
+# RUN: yaml2obj %s -o %t.dSYM
+# RUN: llvm-gsymutil --convert %t.dSYM --out-file=%t.gSYM
+# RUN: llvm-gsymutil --verify --verbose %t.gSYM | FileCheck --check-prefix=CHECK-GSYM %s
----------------
alx32 wrote:

For this specific test, the [DW_AT_LLVM_stmt_sequence](https://discourse.llvm.org/t/rfc-new-dwarf-attribute-for-symbolication-of-merged-functions/79434) is not needed. 
The script that generates the dSYM yaml is at the bottom (and [in this gist](https://gist.github.com/alx32/b085c7bd886786abeeabd3a42ee22a90)).

Since all the overlapping functions in the dSYM are located in different files, their line table will be separate so we don't need that attribute to differentiate the line entries. 

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


More information about the llvm-commits mailing list