search for: endtry

Displaying 1 result from an estimated 1 matches for "endtry".

Did you mean: 2ndtry
2009 May 26
0
[LLVMdev] Exception Personality Function
...erve as an example for how to use exceptions for languages that are different from C++. To invoke the personality function and have it catch an exception, the IR that you generate should look like the following: try: ;; Throw some exception invoke { } @"throwSomething"() to label %endTry unwind label %catch catch: ;; Catch and decode the exception %eh_ptr = call i8* @llvm.eh.exception() %eh_action = call i32 (i8*, i8*, ...)* @llvm.eh.selector.i32( i8* %eh_ptr, i8* bitcast (i32 (i32, i32, i64, i8*, i8*)* @__tart_eh_personality to i8*), %tart.reflect.Type* @tart.c...