]> granicus.if.org Git - clang/commit
[MS ABI] Cleanup our mangling of vector types
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 29 Dec 2015 11:45:58 +0000 (11:45 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 29 Dec 2015 11:45:58 +0000 (11:45 +0000)
commit8191b5c69b83c8ea82a81fefc1eeedea96e4b67c
tree6b4619c30d05793e68d427d8d39b26a1f353bf7b
parentc1b94fa31f7c65b9367b09d9878c5c323a64056f
[MS ABI] Cleanup our mangling of vector types

We used to produce a type which demangled to:
union __clang_vec8_F

That 'F' is the mangling for 'short' but it is present in the mangled
name in an inappropriate place, leading to it not getting demangled.

Instead, create a synthetic class type in a synthetic namespace called
__clang. With this, it now demangles to:
union __clang::__vector<short,8>

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