 Chromium Code Reviews
 Chromium Code Reviews Issue 14617017:
  Adding a pass - RewritePNaClLibraryCalls, that replaces known library calls with stable bitcode int…  (Closed) 
  Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
    
  
    Issue 14617017:
  Adding a pass - RewritePNaClLibraryCalls, that replaces known library calls with stable bitcode int…  (Closed) 
  Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master| 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 |