<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi !</span></div><div><span></span> </div><div><span>I'm quite newbie with LLVM, so when replying please give sufficient information please. :-)</span></div><div><span></span> </div><div><span>I want to use LLVM in windows, but apparently clang currently does not support linking of C++ classes against </span></div><div><span>microsoft compiler  - due to export symbols mangling.</span></div><div><span></span> </div><div><span>Subject was discussed on thread: <a href="http://comments.gmane.org/gmane.comp.compilers.clang.devel/20068">http://comments.gmane.org/gmane.comp.compilers.clang.devel/20068</a></span></div><div><span>and I've tried to contact Timur Iskhodzhanov - but without success yet.</span></div><div><span></span> </div><div><span>According to bugzilla - <a
 href="http://llvm.org/bugs/show_bug.cgi?id=12477">http://llvm.org/bugs/show_bug.cgi?id=12477</a></span></div><div><span>whole approach looks like non-stable yet.</span></div><div><span></span> </div><div><span>Meanwhile - I thought to give a shot alternative approach - if I could create wrapper and stub C modules </span></div><div><span>- wrapper for clang, which would hide C++ - narrowing to pure C exports, and stub code for microsoft compiler, which</span></div><div><span>would do the same thing on callee side.</span></div><div><span></span> </div><div><span>In order to create such wrapper / stub modules - I need to walk through function prototypes and typedefinitions</span></div><div><span>available in source code and generate code according to that meta-data.</span></div><div><span></span> </div><div><span>I have located that clang has two kind of special command line arguments- like '-ast-dump' and '-ast-dump-xml'
 </span></div><div><span>(available in debug version only for some reason) - which does something that I need.</span></div><div><span></span> </div><div><span>For some weird reason those parameters works only with -cc1 command line parameter. (Why ?)</span></div><div><span></span> </div><div><span>I've located one manual -  <a href="http://llvm.org/docs/ProgrammersManual.html#isa">http://llvm.org/docs/ProgrammersManual.html#isa</a> which suggest also how to walk through type</span></div><div><span>information, and I guess DumpXML.cpp gives more descriptive example.</span></div><div><span></span> </div><div><span>Can you recommend me how you would integrate this kind of wrapper / stub generation into llvm / clang - </span></div><div><span>may be I could refresh '-ast-dump-xml' command argument to walk also for normal compilation pass - what kind of problems /</span></div><div><span>open issues you see about it
 ?</span></div><div> </div><div>What does -cc1 stands for ?</div><div> </div><div>--<br>    Have a nice day!<br>        Tarmo.</div></div></body></html>