<div dir="ltr">We want to support MSVC, but this is not well tested. Any help with this would be most welcome - Unfortunately I don't have access to a Windows box or MSVC to test with.<div><div><br></div><div>I suspect that your guess is right, and that this is a symbol mangling issue*. To figure out what's going wrong it would be interesting to know:</div><div><br></div><div>(1) In the constructor for KalidoscopeJIT, what is DL initialized too?</div><div><br></div><div>(2) If you add that data-layout string to the IR for __anon_expr and compile it statically with "llc -o - expr.ll", what symbol name does @__anon_expr get mapped to in the output assembly?</div><div><br></div><div><div>(3) What mangled name does findUnmangledSymbol pass to findSymbol?</div></div></div><div><br></div><div>The mangled symbols for (2) and (3) *should* match, but the mangling in (2) can depend on the linkage type and the mangling in (3) doesn't. It might just be a matter of changing the linkage/visibility of __anon_expr?</div><div><br></div><div>Cheers,</div><div>Lang.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 9, 2015 at 7:28 PM, Sergey Zykov via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello.<div><br></div><div>It seems like kaleidoscope examples is broken. I took latest branch for git, built it with VC++ 2015 (x64) tried to run Kaleidoscope-Orc-initial.exe, and got null pointer error when i tried to evaluate a simple expression. Seems like something is wrong with the symbol mangilng because null pointer is propagated from "J.findUnmangledSymbol("__anon_expr")" call. Are you planning to abandon JIT support in MSVC++, or something gone out-of sync for a moment?</div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>