[llvm] [llvm][DebugInfo] Drop \01 mangling prefix when inserting linkage name into accelerator table (PR #138852)

Michael Buch via llvm-commits llvm-commits at lists.llvm.org
Wed May 7 07:46:49 PDT 2025


================
@@ -0,0 +1,55 @@
+; Tests the mangling escape prefix gets stripped from the linkage name.
+;
+; RUN: %llc_dwarf -accel-tables=Dwarf -dwarf-linkage-names=All -filetype=obj -o %t < %s
+;
+; RUN: llvm-dwarfdump -debug-info -debug-names %t | FileCheck %s
+; RUN: llvm-dwarfdump -debug-names -verify %t | FileCheck --check-prefix=VERIFY %s
+
+; CHECK: .debug_info contents:
+; CHECK: DW_AT_linkage_name	("bar")
+; CHECK: .debug_names contents:
+; CHECK: String: {{.*}} "bar"
+
+; There should be no verification errors for both files.
----------------
Michael137 wrote:

```suggestion
```

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


More information about the llvm-commits mailing list