[MS Demangler] Print calling convention inside parentheses.
authorZachary Turner <zturner@google.com>
Thu, 26 Jul 2018 20:33:48 +0000 (20:33 +0000)
committerZachary Turner <zturner@google.com>
Thu, 26 Jul 2018 20:33:48 +0000 (20:33 +0000)
commit024e1762aa6a89c623df8b1fcbd6b19744bebbde
treeb3108dbbf6db5997e23d5276bd52e4584046b42f
parentca7aef10c453437f8a9ddaaa8370f57a5a290b32
[MS Demangler] Print calling convention inside parentheses.

For function pointers, we would print something like

int __cdecl (*)(int)

We need to move the calling convention inside, and print

int (__cdecl *)(int)

This patch implements this change for regular function pointers as
well as member function pointers.

llvm-svn: 338068
llvm/lib/Demangle/MicrosoftDemangle.cpp
llvm/test/Demangle/ms-arg-qualifiers.test
llvm/test/Demangle/ms-basic.test
llvm/test/Demangle/ms-mangle.test