[LLVMdev] lli crashes when running cpp programs

Tim Northover t.p.northover at gmail.com
Fri Mar 21 12:19:12 PDT 2014


Hi Dongpeng,

You probably want to post patches to the llvm-commits list rather than
llvmdev. That said:

> I need to run c++ prgrams using lli. However, I find lli cannot handle the
> alias instruction correctly. Following is an example:

The backtrace indicates you're using the old JIT, which we're trying
our hardest to get rid of completely. Its replacement is called MCJIT
and seems to support your code already (at least on my amd64 Linux):

$ lli -use-mcjit example.bc
constructor
destructor

Longer term, you almost certainly want to look into that. If MCJIT is
missing features you need, we'd like to know about it so that they can
be implemented.

Cheers.

Tim.



More information about the llvm-dev mailing list