mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
5940390ece
Remove dynamic relocations of __gxx_personality_v0 from the .eh_frame. The MIPS64 follow-up of the MIPS32 fix (rL209907). Patch by Vladimir Stefanovic. Differential Revision: http://reviews.llvm.org/D6141 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221408 91177308-0d34-0410-b5e6-96231b3b80d8
40 lines
1.2 KiB
LLVM
40 lines
1.2 KiB
LLVM
; RUN: llc -mtriple=mipsel-linux-gnu < %s | FileCheck -check-prefix=CHECK32 %s
|
|
; RUN: llc -mtriple=mipsel-linux-android < %s | FileCheck -check-prefix=CHECK32 %s
|
|
; RUN: llc -mtriple=mips64el-linux-gnu < %s | FileCheck -check-prefix=CHECK64 %s
|
|
; RUN: llc -mtriple=mips64el-linux-android < %s | FileCheck -check-prefix=CHECK64 %s
|
|
|
|
define i32 @main() {
|
|
; CHECK: .cfi_startproc
|
|
; CHECK: .cfi_personality 128, DW.ref.__gxx_personality_v0
|
|
|
|
entry:
|
|
invoke void @foo() to label %cont unwind label %lpad
|
|
; CHECK: foo
|
|
; CHECK: jalr
|
|
|
|
lpad:
|
|
%0 = landingpad { i8*, i32 } personality i8*
|
|
bitcast (i32 (...)* @__gxx_personality_v0 to i8*) catch i8* null
|
|
ret i32 0
|
|
|
|
cont:
|
|
ret i32 0
|
|
}
|
|
; CHECK: .cfi_endproc
|
|
|
|
declare i32 @__gxx_personality_v0(...)
|
|
|
|
declare void @foo()
|
|
|
|
; CHECK: .hidden DW.ref.__gxx_personality_v0
|
|
; CHECK: .weak DW.ref.__gxx_personality_v0
|
|
; CHECK: .section .data.DW.ref.__gxx_personality_v0,"aGw",@progbits,DW.ref.__gxx_personality_v0,comdat
|
|
; CHECK32: .align 2
|
|
; CHECK64: .align 3
|
|
; CHECK: .type DW.ref.__gxx_personality_v0,@object
|
|
; CHECK32: .size DW.ref.__gxx_personality_v0, 4
|
|
; CHECK64: .size DW.ref.__gxx_personality_v0, 8
|
|
; CHECK: DW.ref.__gxx_personality_v0:
|
|
; CHECK32: .4byte __gxx_personality_v0
|
|
; CHECK64: .8byte __gxx_personality_v0
|