r272253 - clang/test/CodeGenCXX/debug-info-method.cpp: Tweak for thiscall, for targeting Win32 x86.

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 15 11:20:39 PDT 2016


On Wed, Jun 15, 2016 at 11:05 AM, David Blaikie <dblaikie at gmail.com> wrote:

> Perhaps we shouldn't emit it if it's the logical platform default as it
> (to my naive understanding) appears to be here?
>

It is only the default for member functions, and member functions can be
cdecl (the free function default). I think it makes more sense to be
explicit, otherwise the debugger has to infer that, because this is a
member function, it uses a different calling convention.

It looks like there is an open bug to have GCC and GDB use
DW_AT_calling_convention in this way, but it is not closed:
https://sourceware.org/bugzilla/show_bug.cgi?id=15559
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160615/85225d84/attachment.html>


More information about the cfe-commits mailing list