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