| OLD | NEW |
| 1 ; RUN: %lli_mcjit %s | 1 ; RUN: %lli_mcjit %s |
| 2 ; XFAIL: arm, cygwin, win32, mingw | 2 ; XFAIL: arm, cygwin |
| 3 declare i8* @__cxa_allocate_exception(i64) | 3 declare i8* @__cxa_allocate_exception(i64) |
| 4 declare void @__cxa_throw(i8*, i8*, i8*) | 4 declare void @__cxa_throw(i8*, i8*, i8*) |
| 5 declare i32 @__gxx_personality_v0(...) | 5 declare i32 @__gxx_personality_v0(...) |
| 6 declare void @__cxa_end_catch() | 6 declare void @__cxa_end_catch() |
| 7 declare i8* @__cxa_begin_catch(i8*) | 7 declare i8* @__cxa_begin_catch(i8*) |
| 8 | 8 |
| 9 @_ZTIi = external constant i8* | 9 @_ZTIi = external constant i8* |
| 10 | 10 |
| 11 define void @throwException() { | 11 define void @throwException() { |
| 12 %exception = tail call i8* @__cxa_allocate_exception(i64 4) | 12 %exception = tail call i8* @__cxa_allocate_exception(i64 4) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 23 %p = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_person
ality_v0 to i8*) | 23 %p = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_person
ality_v0 to i8*) |
| 24 catch i8* bitcast (i8** @_ZTIi to i8*) | 24 catch i8* bitcast (i8** @_ZTIi to i8*) |
| 25 %e = extractvalue { i8*, i32 } %p, 0 | 25 %e = extractvalue { i8*, i32 } %p, 0 |
| 26 call i8* @__cxa_begin_catch(i8* %e) | 26 call i8* @__cxa_begin_catch(i8* %e) |
| 27 call void @__cxa_end_catch() | 27 call void @__cxa_end_catch() |
| 28 br label %try.cont | 28 br label %try.cont |
| 29 | 29 |
| 30 try.cont: | 30 try.cont: |
| 31 ret i32 0 | 31 ret i32 0 |
| 32 } | 32 } |
| OLD | NEW |