Displaying 3 results from an estimated 3 matches for "str_throw".
2009 May 21
0
[LLVMdev] Getting exceptions to work?
...return.
define internal fastcc void @throwSomething() {
entry:
%throwable = malloc %Throwable
call fastcc void @Throwable.construct(%Throwable* %throwable)
%unwindInfo = getelementptr %Throwable* %throwable, i32 0, i32 1
call void @print(i8* bitcast ([6 x i8]* @str_throw to i8 *))
%throw = call i32 @_Unwind_RaiseException(%UnwindInfo* %unwindInfo)
call void @print(i8* bitcast ([6 x i8]* @str_abort to i8 *))
ret void
}
This is because it unwound the stack without finding any exception
handlers. It doesn't consider your exception hand...
2009 May 20
3
[LLVMdev] Getting exceptions to work?
Duncan Sands wrote:
> Hi Talin,
>
>> So I tried what you suggested, and it just gives me a bus error:
>>
>> %eh_select34 = call i32 (i8*, i8*, ...)*
>> @llvm.eh.selector.i32 (
>> i8* %eh_ptr,
>> i8* bitcast (i32 (i32, i32, i64, i8*, %UnwindContext*)*
>> @__gcc_personality_v0 to i8*),
>>
2009 May 24
1
[LLVMdev] Getting exceptions to work?
...fastcc void @throwSomething() {
> entry:
> %throwable = malloc %Throwable
> call fastcc void @Throwable.construct(%Throwable* %throwable)
> %unwindInfo = getelementptr %Throwable* %throwable, i32 0, i32 1
> call void @print(i8* bitcast ([6 x i8]* @str_throw to i8 *))
> %throw = call i32 @_Unwind_RaiseException(%UnwindInfo* %unwindInfo)
> call void @print(i8* bitcast ([6 x i8]* @str_abort to i8 *))
> ret void
> }
>
> This is because it unwound the stack without finding any exception
> handlers. It doesn&...