[MS ABI] Improve our mangling of pass_object_size
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 30 Dec 2015 05:13:03 +0000 (05:13 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 30 Dec 2015 05:13:03 +0000 (05:13 +0000)
commit5f177620c3a5fe5626d55d0189a5fc7352e78ad6
tree886b7ba29065fa5774e7ea153250ec63fd8585cd
parentd57bcda1cb0d2db2637a8b42ba344fba5cd6fa3e
[MS ABI] Improve our mangling of pass_object_size

We didn't add the artificial pass_object_size arguments to the
backreference map which bloated the size of manglings which involved
pass_object_size with duplicate types.

This lets us go from:
?qux@PassObjectSize@@YAHQAHW4__pass_object_size1@__clang@@0W4__pass_object_size1@3@@Z

to:
?qux@PassObjectSize@@YAHQAHW4__pass_object_size1@__clang@@01@Z

llvm-svn: 256622
clang/lib/AST/MicrosoftMangle.cpp
clang/test/CodeGenCXX/mangle-ms.cpp