[patch][pr22217] Use the most recent decl for mangling

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Jan 20 07:29:00 PST 2015


Currently clang will produce a @foo when given

int foo;
extern int foo __asm__("bar");

The attached patch makes it produce a @bar, which is what gcc produces.

I am confused by the output changes in the microsoft abi tests.
Hopefully someone more familiar with it can comment on why using a
more recent decl causes problems and has an idea of what should be
changed to accommodate it.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 3288 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150120/810ac5f0/attachment.bin>


More information about the cfe-commits mailing list