]> granicus.if.org Git - clang/commit
MS ABI: Mangle variable templates properly
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 4 Mar 2014 05:38:05 +0000 (05:38 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 4 Mar 2014 05:38:05 +0000 (05:38 +0000)
commit18c20f5f85989cfc004566f00feff6561cc192fe
tree9e115d91b58258962215101d5a737911a1e7c22c
parent3c5c22b2e28865ae5809b7ec7f265c756a81b860
MS ABI: Mangle variable templates properly

We wouldn't recognize variable templates as being templates leading us
to leave the template arguments off of the mangled name.  This would
allow two unrelated templates to map to the same mangled name.

N.B.  While MSVC doesn't support variable templates as of this date,
this mangling is the most likely thing they will choose to use.  Their
demangler can successfully demangle our manglings with the template
arguments shown.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202789 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/MicrosoftMangle.cpp
test/CodeGenCXX/mangle-ms-cxx14.cpp [new file with mode: 0644]