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