This change adds the z/OS personality function to the list of known EH personality functions. It enables removing of the EH data/labels if the personality function is not invoked.
13 lines
386 B
LLVM
13 lines
386 B
LLVM
; RUN: llc -mtriple s390x-ibm-zos < %s | FileCheck %s
|
|
|
|
define signext i32 @_Z9computeitv() personality ptr @__zos_cxx_personality_v2 {
|
|
ret i32 0
|
|
}
|
|
|
|
declare i32 @__zos_cxx_personality_v2(...)
|
|
|
|
; The personality function is unused, therefore check that it is not referenced.
|
|
; There should also be no exception table.
|
|
; CHECK-NOT: __zos_cxx_personality_v2
|
|
; CHECK-NOT: GCC_except_table
|