[llvm] dec9780 - MachO,test: Test DWARF section's begin symbol
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 25 23:28:55 PDT 2025
Author: Fangrui Song
Date: 2025-07-25T23:28:50-07:00
New Revision: dec978036ef1037753e7de5b78c978e71c49217b
URL: https://github.com/llvm/llvm-project/commit/dec978036ef1037753e7de5b78c978e71c49217b
DIFF: https://github.com/llvm/llvm-project/commit/dec978036ef1037753e7de5b78c978e71c49217b.diff
LOG: MachO,test: Test DWARF section's begin symbol
MCObjectFileInfo::initMachOMCObjectFileInfo creates DWARF sections with
a temporary label as the `Begin` symbol, different from other object
file formats' section symbol.
#150574 caused a regression that removed the label for MCAsmStreamer,
which was caught by no test but a ystem-darwin/target-aarch64 specific diagnostics-dsym.test
Added:
Modified:
llvm/test/DebugInfo/X86/stringpool.ll
Removed:
################################################################################
diff --git a/llvm/test/DebugInfo/X86/stringpool.ll b/llvm/test/DebugInfo/X86/stringpool.ll
index 219e6728c6ce1..1c3a57a7cd1b7 100644
--- a/llvm/test/DebugInfo/X86/stringpool.ll
+++ b/llvm/test/DebugInfo/X86/stringpool.ll
@@ -28,8 +28,12 @@ source_filename = "test/DebugInfo/X86/stringpool.ll"
; LINUX: .section .debug_str,"MS", at progbits,1
; LINUX: yyyy
+; DARWIN: .section __DWARF,__debug_abbrev,regular,debug
+; DARWIN-NEXT: Lsection_abbrev:
+
; Verify that we refer to 'yyyy' with a direct offset.
; DARWIN: .section __DWARF,__debug_info,regular,debug
+; DARWIN: Lset1 = Lsection_abbrev-Lsection_abbrev
; DARWIN: DW_TAG_variable
; DARWIN: .long [[YYYY:[0-9]+]]
; DARWIN-NEXT: .long {{[0-9]+}} ## DW_AT_type
More information about the llvm-commits
mailing list