llvm-config
puts -fno-exceptions
in the LDFLAGS for linking llvm itself. Am I right in assuming this means that I cannot use normal C++ try/throw blocks in code (such as a new language front-end) that link against the llvm compiler? I'm not talking about programs the compiler produces, but the compiler itself. I do not want to meddle with the output from llvm-config
, I am sure -fno-exceptions
is there for a reason..
If I wanted to write a new language front-end for LLVM (for a toy language I'm writing) that linked with the other LLVM code, is there a standard way of handling exceptions in the code for the front-end?