• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck --check-prefix=STATIC %s
2; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -relocation-model=pic | FileCheck --check-prefix=PIC %s
3
4; STATIC: .cfi_personality 3, __gxx_personality_v0
5; STATIC: .cfi_lsda 3, .Lexception0
6
7; PIC: .cfi_personality 155, DW.ref.__gxx_personality_v0
8; PIC: .cfi_lsda 27, .Lexception0
9
10
11define void @bar() personality i32 (...)* @__gxx_personality_v0 {
12entry:
13  %call = invoke i32 @foo()
14          to label %invoke.cont unwind label %lpad
15
16invoke.cont:
17  ret void
18
19lpad:
20  %exn = landingpad {i8*, i32}
21            catch i8* null
22  ret void
23}
24
25declare i32 @foo()
26
27declare i32 @__gxx_personality_v0(...)
28