<div>Unfortunately I have no idea how to to properly declare such prototype in LLVM so that it was compatible with the code generated by Visual C++. So I am considering only simple cases (numeric types and pointers).</div>
<div><br></div><div>Victor</div><br><div class="gmail_quote">2009/6/16 Óscar Fuentes <span dir="ltr"><<a href="mailto:ofv@wanadoo.es">ofv@wanadoo.es</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Victor Zverovich <<a href="mailto:victor.zverovich@googlemail.com">victor.zverovich@googlemail.com</a>> writes:<br>
<br>
> The question about the name mangling gave me an idea that it can be used to<br>
> automate registration of DLL functions. Instead of manually creating<br>
> Function objects specifying a return type and argument types which is<br>
> error-prone and time-consuming one can get a list of functions exported from<br>
> a DLL using Windows API, demangle each name and construct a Function object<br>
> from it. Is there any support for Visual C++ style (de)mangling in LLVM or<br>
> related project? In any case I think it won't be difficult for me to write<br>
> such a converter from mangled names to LLVM function declarations.<br>
<br>
</div>As long as the functions' arguments an return types are simple enough,<br>
it seems doable. But have you something in mind for cases such as<br>
<br>
AClass foo(SomeOtherClass other);<br>
<br>
?<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Óscar<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br>