[LLVMdev] runtime library for jitted code
victor at optirisk-systems.com
Tue Jun 16 14:00:12 PDT 2009
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).
2009/6/16 Óscar Fuentes <ofv at wanadoo.es>
> Victor Zverovich <victor.zverovich at googlemail.com> writes:
> > The question about the name mangling gave me an idea that it can be used
> > automate registration of DLL functions. Instead of manually creating
> > Function objects specifying a return type and argument types which is
> > error-prone and time-consuming one can get a list of functions exported
> > a DLL using Windows API, demangle each name and construct a Function
> > from it. Is there any support for Visual C++ style (de)mangling in LLVM
> > related project? In any case I think it won't be difficult for me to
> > such a converter from mangled names to LLVM function declarations.
> As long as the functions' arguments an return types are simple enough,
> it seems doable. But have you something in mind for cases such as
> AClass foo(SomeOtherClass other);
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev