Skip to content

Commit dec9780

Browse files
committed
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
1 parent f2a4cc1 commit dec9780

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/test/DebugInfo/X86/stringpool.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ source_filename = "test/DebugInfo/X86/stringpool.ll"
2828
; LINUX: .section .debug_str,"MS",@progbits,1
2929
; LINUX: yyyy
3030

31+
; DARWIN: .section __DWARF,__debug_abbrev,regular,debug
32+
; DARWIN-NEXT: Lsection_abbrev:
33+
3134
; Verify that we refer to 'yyyy' with a direct offset.
3235
; DARWIN: .section __DWARF,__debug_info,regular,debug
36+
; DARWIN: Lset1 = Lsection_abbrev-Lsection_abbrev
3337
; DARWIN: DW_TAG_variable
3438
; DARWIN: .long [[YYYY:[0-9]+]]
3539
; DARWIN-NEXT: .long {{[0-9]+}} ## DW_AT_type

0 commit comments

Comments
 (0)