<div>Thanks for your response, Tim!</div><div><br></div><div>I have posted the
patch to the commits mailing list. I also tried to use mcjit however the error
came out as:</div><div><br></div><div>LLVM ERROR: Program used external
function '__dso_handle' which could not be
resolved!</div><div><br></div><div>Am I missing some
libraries?</div><div><br></div><div>Thanks,</div><div>Dongpeng<br><br>On Fri,
Mar 21, 2014 03:19 PM, <b>Tim Northover <t.p.northover@gmail.com></b>
wrote:<br><blockquote id="quoted_response" style="padding-left: 3px;
padding-right: 0px; margin-left: 3px; margin-right: 0px; border-left: 1px solid
#000;">
<pre>
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.


</pre></blockquote><br><br><br></div>