blob: 134593ad397155123d921ee14f334cd05f68f9ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
; RUN: opt < %s -rewrite-pnacl-library-calls -S | FileCheck %s
; RUN: opt < %s -rewrite-pnacl-library-calls -S | FileCheck %s -check-prefix=CLEANED
; Test that when there are no uses other than calls to longjmp,
; no function body is generated.
declare void @longjmp(i64*, i32)
; No declaration or definition of longjmp() should remain.
; CLEANED-NOT: @longjmp
define void @call_longjmp(i64* %arg, i32 %num) {
call void @longjmp(i64* %arg, i32 %num)
; CHECK: call void @llvm.nacl.longjmp(i8* %jmp_buf_i8, i32 %num)
ret void
}
|