1 # REQUIRES: object-emission
4 # RUN: llc -filetype=obj %p/../Inputs/frame-dw2.ll -o %t/frame-dw2.o
5 # RUN: dsymutil -f -oso-prepend-path=%t -y %s -o - | llvm-dwarfdump -debug-frame - | FileCheck %s
7 # This test is meant to verify that identical CIEs will get reused
8 # in the same file but also inbetween files. For this to happen, we
9 # link twice the same file using this made-up debug map:
12 triple: 'i386-apple-darwin'
14 - filename: frame-dw2.o
16 - { sym: _bar, objAddr: 0x0, binAddr: 0x1000, size: 0x12 }
17 - { sym: _baz, objAddr: 0x0, binAddr: 0x2000, size: 0x12 }
18 - filename: frame-dw2.o
20 - { sym: _baz, objAddr: 0x0, binAddr: 0x3000, size: 0x12 }
23 # CHECK: .debug_frame contents:
24 # CHECK: 00000000 {{[0-9a-f]*}} ffffffff CIE
26 # CHECK: FDE cie=00000000 pc=00001000...00001
28 # CHECK: FDE cie=00000000 pc=00002000...00002
30 # CHECK: FDE cie=00000000 pc=00003000...00003
32 # CHECK: .eh_frame contents: