[LLVMdev] disable insertion of unreachables
Kenneth Uildriks
kennethuil at gmail.com
Sun Sep 6 14:55:22 PDT 2009
What do you mean by "terminating function call"? Is it one with the
"noreturn" attribute? if so, the assembly language docs say that
program behavior is undefined if such a function ever returns. If
your function could possibly return, it needs to not have that
attribute.
On Sun, Sep 6, 2009 at 4:49 PM, Max
Stonebraker<max.stonebraker at gmail.com> wrote:
> Hello all,
>
> LLVM inserts unreachable instructions after every call to a terminating
> function. Is there a way to disable this feature so that it treats
> terminating function calls like any other function call, so the unreachable
> instruction would not be inserted? Unfortunately, simply removing the
> unreachable instructions after the fact would not suffice for my needs
> because I need to preserve the original control flow of the program. That
> is, I need to know the instruction that would have been executed if the call
> to the terminating function didn't actually terminate the program.
>
> Thanks!
>
> Max
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
More information about the llvm-dev
mailing list