Yaron Keren
2013-Oct-03 12:34 UTC
[LLVMdev] Exceptions do not work with MCJIT on Windows 7
Hello, I'm trying to make exceptions work using MCJIT on Windows 7 x64 (the compiled code is 32bit). The command line driver and the MCJIT program are compiled from the same LLVM codebase, latest revision from yesterday. Visual C++ 2012 was used to build the LLVM project while MingW 4.8.1 was used to build libcxx and libcxxabi. The same headers and same above DLLs are used for both command line and for MCJIT. Invocation parameters shown by -v are identical except that MCJIT needs ELF object format while the command driver needs COFF. The code below catches exceptions when compiled from the command line but from MCJIT the compiled code just calls terminate. Any ideas how to catch exceptions with MCJIT generated code? Thanks, Yaron #include <iostream> int main() { try { throw 1; } catch (...) { std::cout<<"Caught!\n"; } return 0; } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131003/b7b846ad/attachment.html>
Apparently Analagous Threads
- [LLVMdev] An enhancement for MCJIT::getFunctionAddress
- [LLVMdev] SmallPtrSet patch for MCJIT
- [LLVMdev] Size limitations in MCJIT / ELF Dynamic Linker/ ELF codegen?
- [LLVMdev] Size limitations in MCJIT / ELF Dynamic Linker/ ELF codegen?
- [LLVMdev] Size limitations in MCJIT / ELF Dynamic Linker/ ELF codegen?