Displaying 1 result from an estimated 1 matches for "the_return".
2005 Apr 19
1
[LLVMdev] Unwind example
...t;
implementation ; Functions:
declare int %printf(sbyte*, ...)
internal void %stack_check() {
entry:
%xyzzy = alloca int ; <int*> [#uses=1]
%spcheck.0 = cast int* %xyzzy to int
%spcheck.1 = setlt int %spcheck.0, -1080000000
br bool %spcheck.1, label %the_return, label %endif
endif:
%tmp.0 = getelementptr [9 x sbyte]* %str_sp, int 0, int 0
%tmp.1 = call int (sbyte*, ...)* %printf( sbyte* %tmp.0, int* %xyzzy)
call void %stack_check()
br label %the_return
the_return:
; ret void
unwind
}
int %main() {
entry:
inv...