[LLVMdev] runtime library for jitted code
Óscar Fuentes
ofv at wanadoo.es
Tue Jun 16 13:07:40 PDT 2009
Victor Zverovich <victor.zverovich at googlemail.com> writes:
> The question about the name mangling gave me an idea that it can be used to
> 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 from
> a DLL using Windows API, demangle each name and construct a Function object
> from it. Is there any support for Visual C++ style (de)mangling in LLVM or
> related project? In any case I think it won't be difficult for me to write
> 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);
?
--
Óscar
More information about the llvm-dev
mailing list