OLD | NEW |
---|---|
(Empty) | |
1 ; RUN: opt < %s -rewrite-pnacl-library-calls -S | FileCheck %s | |
2 ; Test that when there are no uses other than calls to longjmp, | |
3 ; no function body is generated. | |
4 | |
5 declare void @longjmp(i64*, i32) | |
6 ; CHECK-NOT: define{{.*}}@longjmp(i64* %env, i32 %val) { | |
7 | |
8 define void @call_longjmp(i64* %arg, i32 %num) { | |
9 call void @longjmp(i64* %arg, i32 %num) | |
10 ; CHECK: call void @llvm.nacl.longjmp(i8* %jmp_buf_i8, i32 %num) | |
11 ret void | |
12 } | |
13 | |
OLD | NEW |