diff options
| author | Zachary Turner <zturner@google.com> | 2018-07-26 20:33:48 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2018-07-26 20:33:48 +0000 |
| commit | 024e1762aa6a89c623df8b1fcbd6b19744bebbde (patch) | |
| tree | b3108dbbf6db5997e23d5276bd52e4584046b42f /llvm/test/Demangle/ms-basic.test | |
| parent | ca7aef10c453437f8a9ddaaa8370f57a5a290b32 (diff) | |
| download | bcm5719-llvm-024e1762aa6a89c623df8b1fcbd6b19744bebbde.tar.gz bcm5719-llvm-024e1762aa6a89c623df8b1fcbd6b19744bebbde.zip | |
[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
Diffstat (limited to 'llvm/test/Demangle/ms-basic.test')
| -rw-r--r-- | llvm/test/Demangle/ms-basic.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Demangle/ms-basic.test b/llvm/test/Demangle/ms-basic.test index 2811017a88e..972a8b7749a 100644 --- a/llvm/test/Demangle/ms-basic.test +++ b/llvm/test/Demangle/ms-basic.test @@ -30,13 +30,13 @@ ; CHECK: void __cdecl x(float, int) ?x@@3P6AHMNH@ZEA -; CHECK: int __cdecl (*x)(float, double, int) +; CHECK: int (__cdecl *x)(float, double, int) ?x@@3P6AHP6AHM@ZN@ZEA -; CHECK: int __cdecl (*x)(int __cdecl (*)(float), double) +; CHECK: int (__cdecl *x)(int (__cdecl *)(float), double) ?x@@3P6AHP6AHM@Z0@ZEA -; CHECK: int __cdecl (*x)(int __cdecl (*)(float), int __cdecl (*)(float)) +; CHECK: int (__cdecl *x)(int (__cdecl *)(float), int (__cdecl *)(float)) ?x@ns@@3HA ; CHECK: int ns::x @@ -87,7 +87,7 @@ ; CHECK: class klass instance ?instance$initializer$@@3P6AXXZEA -; CHECK: void __cdecl (*instance$initializer$)(void) +; CHECK: void (__cdecl *instance$initializer$)(void) ??0klass@@QEAA@XZ ; CHECK: __cdecl klass::klass(void) |

