Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / MachO / double-unwind-info.s
blobd1301cb744207330bc2e8d7281ad20ba9fedbe68
1 ## When changing the assembly input, uncomment these lines to re-generate the
2 ## YAML.
3 # COM: llvm-mc --emit-dwarf-unwind=always -filetype=obj -triple=x86_64-apple-macos10.15 %s -o %t.o
4 # COM: ld -r %t.o -o %t-r.o
5 # COM: obj2yaml %t-r.o > %S/Inputs/double-unwind-info.yaml
7 # RUN: yaml2obj %S/Inputs/double-unwind-info.yaml > %t-r.o
8 # RUN: %lld -dylib -lSystem %t-r.o -o /dev/null
10 .text
11 ## eh_frame function address relocations are only emitted if the function isn't
12 ## at address 0x0.
13 _spacer:
14 nop
16 ## Check that we perform unwind info registration correctly when there are
17 ## multiple symbols at the same address. This would previously hit an assertion
18 ## error (PR56570).
19 _foo:
20 ltmp1:
21 .cfi_startproc
22 .cfi_def_cfa_offset 8
23 nop
24 .cfi_endproc
26 .subsections_via_symbols