[cfe-commits] Allow asm labels to exist on C++ member functions

David Majnemer david.majnemer at gmail.com
Wed Jun 9 15:49:33 PDT 2010


Hi,

I thought about this when I first implemented this. Turns out g++ does
it so I do it too...

-- 
David Majnemer

On Wed, Jun 9, 2010 at 11:20 AM, Anders Carlsson <andersca at mac.com> wrote:
> Hi David,
>
> Would it make sense to only allow this on static member functions?
>
> - Anders
>
> Sent from my iPad
>
> On Jun 9, 2010, at 11:13 AM, David Majnemer <david.majnemer at gmail.com> wrote:
>
>> GCC has an extension called "Asm Labels" which clang dutifully
>> implements for normal function declarations but does not implement for
>> class member functions.
>>
>> I have attached a patch that seems to work, the generated assembly
>> seems to be correct.
>> <class_member_asm.patch>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>



More information about the cfe-commits mailing list