[LLVMdev] thiscall on MSVC

Benjamin Smedberg benjamin at smedbergs.us
Sat Dec 1 07:35:25 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There doesn't appear to be a calling convention matching "thiscall"... on
gcc targets, the standard calling convention is fine (just pass "this" as
the first parameter), but with MSVC this won't work because it passes "this"
in %ECX.

Is there a workaround for this? Or how hard would it be to add a separate
"thiscall" convention which maps to "ccc" on GCC-like targets and the custom
MSVC target on MSVC-x86?

- --BDS

- --

Benjamin Smedberg
Platform Guru
Mozilla Corporation
benjamin at smedbergs.us
http://benjamin.smedbergs.us/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHUX89SSwGp5sTYNkRAr1BAJ9mvl5TX3htJKvKv0fgRnLYmLDqfACg2kVz
QYsxHM/HjaX2QpL8MUYm8U0=
=C8PQ
-----END PGP SIGNATURE-----



More information about the llvm-dev mailing list