]> granicus.if.org Git - clang/commit
[MS ABI] Implement a mangling for _Atomic types
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 29 Dec 2015 11:46:00 +0000 (11:46 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 29 Dec 2015 11:46:00 +0000 (11:46 +0000)
commit8b91542bfcc08d2732650e387f7861f6aebc83b7
treeb4fb3c5a44b9743b1b6cdc3b3d6b2248adb6c871
parent8191b5c69b83c8ea82a81fefc1eeedea96e4b67c
[MS ABI] Implement a mangling for _Atomic types

MSVC doesn't implement a mangling for C11's _Atomic so we must invent
our own.

For now, treating it like a class type called _Atomic in the __clang
namespace.

This means that 'void f(__Atomic(int))'
will demangle as: 'void f(struct __clang::_Atomic<int>)'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256557 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/MicrosoftMangle.cpp
test/CodeGenCXX/mangle-ms.cpp