[llvm-commits] Patch for #9067

NAKAMURA Takumi geek4civic at gmail.com
Sun Feb 13 19:22:09 PST 2011


Pawel,

We would be happier if you provided testcases. ;)


Rafael,

2011/2/14 Rafael Ávila de Espíndola <rafael.espindola at gmail.com>:
> Are things like foo at PLT valid on windows too? I think we would still
> accept it with this patch.

In traditional stdcall(used by Win32 API), these symbols are used to
export and import;

AllocConsole at 0
AddAtomW at 4

@n means callee's stack rewinding factor. (ret $n)
Assembler should treat whole XXXXX at n as symbol with win32.

__stdcall int baz(int a, int b) {return a;}

        .globl  _baz at 8
_baz at 8:
        movl    4(%esp), %eax
        ret     $8


...Takumi




More information about the llvm-commits mailing list