mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-20 19:04:10 -04:00
42e40ea33e
This adds initial support for a demangling library (LLVMDemangle) and tool (llvm-undname) for demangling Microsoft names. This doesn't cover 100% of cases and there are some known limitations which I intend to address in followup patches, at least until such time that we have (near) 100% test coverage matching up with all of the test cases in clang/test/CodeGenCXX/mangle-ms-*. Differential Revision: https://reviews.llvm.org/D49552 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337584 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
396 B
Plaintext
18 lines
396 B
Plaintext
; See clang/test/CodeGenCXX/mangle-windows.cpp
|
|
; These tests are based on clang/test/CodeGenCXX/mangle-ms.cpp
|
|
; RUN: llvm-undname < %s | FileCheck %s
|
|
|
|
; CHECK-NOT: Invalid mangled name
|
|
|
|
?bar@Foo@@SGXXZ
|
|
; CHECK: static void __stdcall Foo::bar(void)
|
|
|
|
?bar@Foo@@QAGXXZ
|
|
; CHECK: void __stdcall Foo::bar(void)
|
|
|
|
?f2@@YIXXZ
|
|
; CHECK: void __fastcall f2(void)
|
|
|
|
?f1@@YGXXZ
|
|
; CHECK: void __stdcall f1(void)
|