I have read this blog post, this documentation page and this example, but I still don\'t understand how to throw a basic exception using the LLVM\'s IRBuilder for a non-C++ orie
Short answer is that _Unwind_RaiseException is not a C++-specific function. It comes from the libunwind library, and allows to throw any type of exception.