[cfe-commits] r67429 - /cfe/trunk/lib/CodeGen/Mangle.cpp

Cédric Venet cedric.venet at laposte.net
Sat Mar 21 02:21:04 PDT 2009


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
_g at 4
@h at 4

regards,

Cédric

ps: should the list have a reply-to:cfe-commits at cs.uiuc.edu? Like it is actually, it is easy to reply only to the sender.

>   




More information about the cfe-commits mailing list