[ms-cxxabi] Mangle vector types
authorReid Kleckner <reid@kleckner.net>
Tue, 26 Mar 2013 16:56:59 +0000 (16:56 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 26 Mar 2013 16:56:59 +0000 (16:56 +0000)
commite7e64d8a7bc745c2199e62a8e96e661fef1dc0ce
treebc79cfe51037d0d493be8ca3053ac06ecf37155c
parent6c75d19ba0748df525623b9bafec765a76684e35
[ms-cxxabi] Mangle vector types

Summary:
The only vector types a user can pass from MSVC code to clang code are
the ones from *mmintrin.h, so we only have to match the MSVC mangling
for these types.  MSVC mangles the __m128 family of types as tag types,
which we match.  For other vector types, we emit a unique tag type
mangling that won't match anything produced by MSVC.

Reviewers: rjmccall

CC: chandlerc, timurrrr, cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D576

llvm-svn: 178036
clang/lib/AST/MicrosoftMangle.cpp
clang/test/CodeGenCXX/mangle-ms-vector-types.cpp [new file with mode: 0644]