Displaying 1 result from an estimated 1 matches for "eh_action".
Did you mean:
bh_action
2009 May 26
0
[LLVMdev] Exception Personality Function
...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.core.InvalidArgumentException.type,
%tart.reflect.Type* @tart.core.Throwable.type)
;; subtract offset of UnwindEx...