[lld] [lld-macho] Fix invalid DWARF with --icf=safe_thunks (PR #111097)
Peter Rong via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 4 09:12:48 PDT 2024
================
@@ -49,127 +62,179 @@
; CHECK-ARM64-MAP-NEXT: 0x00000004 [ 2] _func_3identical_v2
; CHECK-ARM64-MAP-NEXT: 0x00000004 [ 2] _func_3identical_v3
+; ModuleID = 'icf-safe-thunks.cpp'
+source_filename = "icf-safe-thunks.cpp"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128-Fn32"
target triple = "arm64-apple-macosx11.0.0"
-
- at g_val = global i8 0, align 1
- at g_ptr = global ptr null, align 8
-
+ at g_val = global i8 0, align 1, !dbg !0
+ at g_ptr = global ptr null, align 8, !dbg !7
; Function Attrs: mustprogress nofree noinline norecurse nounwind ssp memory(readwrite, argmem: none) uwtable(sync)
-define void @func_unique_1() #0 {
+define void @func_unique_1() #0 !dbg !19 {
----------------
DataCorrupted wrote:
It seems the new test included many debug locations. Are they really necessary? If not, can we remove them to show with better clarity how the test changed with this patch?
https://github.com/llvm/llvm-project/pull/111097
More information about the llvm-commits
mailing list