]> granicus.if.org Git - clang/commit
MS ABI: Add support for mangling __restrict
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 18 Feb 2014 12:58:35 +0000 (12:58 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 18 Feb 2014 12:58:35 +0000 (12:58 +0000)
commit8bd69ae74382c85c528a072312d36854b58d2b6f
tree219fba8cca8aeed15f8e9509646e2b212743137d
parent48788de5c8ff8ac4d2766ed9de3447984a2692c6
MS ABI: Add support for mangling __restrict

Pointer types in the MSVC ABI are a bit awkward, the width of the
pointer is considered a kind of CVR qualifier.

Restrict is handled similarly to const and volatile but is mangled after
the pointer width qualifier.

This fixes PR18880.

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