Chris Lattner a écrit :
> Author: lattner
> Date: Sat Mar 21 01:19:20 2009
> New Revision: 67429
>
> URL: http://llvm.org/viewvc/llvm-project?rev=67429&view=rev
> Log:
> simplify CXXNameMangler::mangle, making it exit earlier for C functions.
> This speeds up a testcase in 3810 by ~16%.
>
>   

On windows, function name are 'mangled' by prefixing the name with an 
underscore or arobase and depending to the calling convention suffixed 
with the size of the arguments. Should this be done here?

http://en.wikipedia.org/wiki/Name_mangling#C_name_decoration_in_Microsoft_Windows

int _cdecl    f (int x) { return 0; }
int _stdcall  g (int y) { return 0; }
int _fastcall h (int z) { return 0; }

give:

_f
_...@4
@h...@4

regards,

Cédric

ps: should the list have a reply-to:[email protected]? Like it is 
actually, it is easy to reply only to the sender.

>   

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to