(original) (raw)

Thanks for your response, Tim!

I have posted the patch to the commits mailing list. I also tried to use mcjit however the error came out as:

LLVM ERROR: Program used external function '\_\_dso\_handle' which could not be resolved!

Am I missing some libraries?

Thanks,
Dongpeng

On Fri, Mar 21, 2014 03:19 PM, Tim Northover wrote:
  
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.