[llvm] [DebugInfo] Add clang flag to enable function-level debug line attribution (PR #93985)

Paul T Robinson via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 07:45:59 PDT 2024


================
@@ -0,0 +1,68 @@
+; RUN: llc -mtriple=i686-w64-mingw32 -o %t -filetype=obj %s
+; RUN: llvm-dwarfdump -v -all %t | FileCheck %s -check-prefix=NO_STMT_SEQ
+
+; RUN: llc -mtriple=i686-w64-mingw32 -o %t -filetype=obj %s -emit-func-debug-line-table-offsets
+; RUN: llvm-dwarfdump -v -all %t | FileCheck %s -check-prefix=STMT_SEQ
+
+; NO_STMT_SEQ-NOT:      DW_AT_META_stmt_sequence
+
+; STMT_SEQ:   [2] DW_TAG_subprogram
----------------
pogo59 wrote:

I think this `[2]` is the abbrev code? Which is not guaranteed stable; this should use a FileCheck variable.

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


More information about the llvm-commits mailing list