search for: eh_class

Displaying 3 results from an estimated 3 matches for "eh_class".

2009 May 20
2
[LLVMdev] Getting exceptions to work?
...sh, but it doesn't work right either (for reasons we've already discussed - it doesn't know how to redirect the execution to the landing pad): @str_persn = internal constant [10 x i8] c"persn %d\0a\00" define i32 @personality_func(i32 %version, i32 %action, i64 %eh_class, i8* %eh_ptr, %UnwindContext* %eh_context) nounwind { call void (i8*, ...)* @printf(i8* bitcast ([10 x i8]* @str_persn to i8*), i32 %action) %phase = icmp eq i32 %action, 1 br i1 %phase, label %search, label %handler search: ret i32 6 handler: call...
2009 May 19
0
[LLVMdev] Getting exceptions to work?
Talin wrote: > Nicolas Geoffray wrote: >> Hi Talin, >> >> You're not using the llvm intrinsics for exception handling, so your >> code won't work. Using _Unwind_RaiseException should be OK, but your >> main function must at least use llvm.eh.exception, >> llvm.eh.selector.i32/64 and probably __cxa_begin_catch and __cxa_end_catch. >> >
2009 May 19
5
[LLVMdev] Getting exceptions to work?
Nicolas Geoffray wrote: > Hi Talin, > > You're not using the llvm intrinsics for exception handling, so your > code won't work. Using _Unwind_RaiseException should be OK, but your > main function must at least use llvm.eh.exception, > llvm.eh.selector.i32/64 and probably __cxa_begin_catch and __cxa_end_catch. > Let me ask a follow-up question then - if the