brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 6b02f32 Raw
37 lines · plain
1# RUN: rm -rf %t2# RUN: mkdir -p %t3# RUN: llc -filetype=obj %p/../../Inputs/frame-dw2.ll -o %t/frame-dw2.o4# RUN: dsymutil --linker parallel -f -oso-prepend-path=%t -y %s -o - | \5# RUN:   llvm-dwarfdump -debug-frame - | FileCheck %s6 7# This test is meant to verify that identical CIEs will get reused8# in the same file but not inbetween files. For this to happen, we9# link twice the same file using this made-up debug map:10 11---12triple:          'i386-apple-darwin'13objects:14  - filename: frame-dw2.o15    symbols:16      - { sym: _bar, objAddr: 0x0, binAddr: 0x1000, size: 0x12 }17      - { sym: _baz, objAddr: 0x0, binAddr: 0x2000, size: 0x12 }18  - filename: frame-dw2.o19    symbols:20      - { sym: _bar, objAddr: 0x0, binAddr: 0x3000, size: 0x12 }21      - { sym: _baz, objAddr: 0x0, binAddr: 0x4000, size: 0x12 }22...23 24# CHECK: .debug_frame contents:25# CHECK: 00000000 {{[0-9a-f]*}} ffffffff CIE26# CHECK-NOT: FDE27# CHECK:  FDE cie=00000000 pc=00001000...0000128# CHECK-NOT: FDE29# CHECK:  FDE cie=00000000 pc=00002000...0000230# CHECK:  [[CIECU2:[0-9a-f]*]] {{[0-9a-f]*}} ffffffff CIE31# CHECK-NOT: FDE32# CHECK:  FDE cie=[[CIECU2]] pc=00003000...0000333# CHECK-NOT: FDE34# CHECK:  FDE cie=[[CIECU2]] pc=00004000...0000435# CHECK-NOT: FDE36# CHECK: .eh_frame contents:37