Zachary Turner | c204819 | 2018-07-26 22:13:39 +0000 | [diff] [blame] | 1 | ; RUN: llvm-undname < %s | FileCheck %s |
| 2 | |
| 3 | ; CHECK-NOT: Invalid mangled name |
| 4 | |
| 5 | ?f1@@YAXPBD0@Z |
| 6 | ; CHECK: void __cdecl f1(char const *, char const *) |
| 7 | |
| 8 | ?f2@@YAXPBDPAD@Z |
| 9 | ; CHECK: void __cdecl f2(char const *, char *) |
| 10 | |
| 11 | ?f3@@YAXHPBD0@Z |
| 12 | ; CHECK: void __cdecl f3(int, char const *, char const *) |
| 13 | |
| 14 | ?f4@@YAPBDPBD0@Z |
| 15 | ; CHECK: char const * __cdecl f4(char const *, char const *) |
| 16 | |
| 17 | ?f5@@YAXPBDIDPBX0I@Z |
| 18 | ; CHECK: void __cdecl f5(char const *, unsigned int, char, void const *, char const *, unsigned int) |
| 19 | |
| 20 | ?f6@@YAX_N0@Z |
| 21 | ; CHECK: void __cdecl f6(bool, bool) |
| 22 | |
| 23 | ?f7@@YAXHPAHH0_N1PA_N@Z |
| 24 | ; CHECK: void __cdecl f7(int, int *, int, int *, bool, bool, bool *) |
| 25 | |
Zachary Turner | c204819 | 2018-07-26 22:13:39 +0000 | [diff] [blame] | 26 | ?g1@@YAXUS@@@Z |
| 27 | ; CHECK: void __cdecl g1(struct S) |
| 28 | |
| 29 | ?g2@@YAXUS@@0@Z |
| 30 | ; CHECK: void __cdecl g2(struct S, struct S) |
| 31 | |
| 32 | ?g3@@YAXUS@@0PAU1@1@Z |
| 33 | ; CHECK: void __cdecl g3(struct S, struct S, struct S *, struct S *) |
| 34 | |
| 35 | ?g4@@YAXPBDPAUS@@01@Z |
| 36 | ; CHECK: void __cdecl g4(char const *, struct S *, char const *, struct S *) |
| 37 | |
| 38 | ?mbb@S@@QAEX_N0@Z |
| 39 | ; CHECK: void __thiscall S::mbb(bool, bool) |
| 40 | |
| 41 | ?h1@@YAXPBD0P6AXXZ1@Z |
| 42 | ; CHECK: void __cdecl h1(char const *, char const *, void (__cdecl *)(void), void (__cdecl *)(void)) |
| 43 | |
| 44 | ?h2@@YAXP6AXPAX@Z0@Z |
| 45 | ; CHECK: void __cdecl h2(void (__cdecl *)(void *), void *) |
| 46 | |
| 47 | ?h3@@YAP6APAHPAH0@ZP6APAH00@Z10@Z |
| 48 | ; CHECK: int * (__cdecl * __cdecl h3(int * (__cdecl *)(int *, int *), int * (__cdecl *)(int *, int *), int *))(int *, int *) |
| 49 | |
| 50 | ?foo@0@YAXXZ |
| 51 | ; CHECK: void __cdecl foo::foo(void) |
Zachary Turner | 5999ebb | 2018-08-01 18:32:47 +0000 | [diff] [blame] | 52 | |
Zachary Turner | 5999ebb | 2018-08-01 18:32:47 +0000 | [diff] [blame] | 53 | ??$?HH@S@@QEAAAEAU0@H@Z |
Zachary Turner | 05de30e | 2018-08-18 18:49:48 +0000 | [diff] [blame] | 54 | ; CHECK: struct S & __cdecl S::operator+<int>(int) |
| 55 | |
| 56 | ?foo_abbb@@YAXV?$A@V?$B@D@@V1@V1@@@@Z |
| 57 | ; CHECK: void __cdecl foo_abbb(class A<class B<char>, class B<char>, class B<char>>) |
| 58 | |
| 59 | ?foo_abb@@YAXV?$A@DV?$B@D@@V1@@@@Z |
| 60 | ; CHECK: void __cdecl foo_abb(class A<char, class B<char>, class B<char>>) |
| 61 | |
| 62 | ?foo_abc@@YAXV?$A@DV?$B@D@@V?$C@D@@@@@Z |
| 63 | ; CHECK: void __cdecl foo_abc(class A<char, class B<char>, class C<char>>) |
| 64 | |
| 65 | ?foo_bt@@YAX_NV?$B@$$A6A_N_N@Z@@@Z |
| 66 | ; CHECK: void __cdecl foo_bt(bool, class B<bool __cdecl(bool)>) |
| 67 | |
| 68 | ?foo_abbb@@YAXV?$A@V?$B@D@N@@V12@V12@@N@@@Z |
| 69 | ; CHECK: void __cdecl foo_abbb(class N::A<class N::B<char>, class N::B<char>, class N::B<char>>) |
| 70 | |
| 71 | ?foo_abb@@YAXV?$A@DV?$B@D@N@@V12@@N@@@Z |
| 72 | ; CHECK: void __cdecl foo_abb(class N::A<char, class N::B<char>, class N::B<char>>) |
| 73 | |
| 74 | ?foo_abc@@YAXV?$A@DV?$B@D@N@@V?$C@D@2@@N@@@Z |
| 75 | ; CHECK: void __cdecl foo_abc(class N::A<char, class N::B<char>, class N::C<char>>) |
| 76 | |
| 77 | ?abc_foo@@YA?AV?$A@DV?$B@D@N@@V?$C@D@2@@N@@XZ |
| 78 | ; CHECK: class N::A<char, class N::B<char>, class N::C<char>> __cdecl abc_foo(void) |
| 79 | |
| 80 | ?z_foo@@YA?AVZ@N@@V12@@Z |
| 81 | ; CHECK: class N::Z __cdecl z_foo(class N::Z) |
| 82 | |
| 83 | ?b_foo@@YA?AV?$B@D@N@@V12@@Z |
| 84 | ; CHECK: class N::B<char> __cdecl b_foo(class N::B<char>) |
| 85 | |
| 86 | ?d_foo@@YA?AV?$D@DD@N@@V12@@Z |
| 87 | ; CHECK: class N::D<char, char> __cdecl d_foo(class N::D<char, char>) |
| 88 | |
| 89 | ?abc_foo_abc@@YA?AV?$A@DV?$B@D@N@@V?$C@D@2@@N@@V12@@Z |
| 90 | ; CHECK: class N::A<char, class N::B<char>, class N::C<char>> __cdecl abc_foo_abc(class N::A<char, class N::B<char>, class N::C<char>>) |
| 91 | |
| 92 | ?foo5@@YAXV?$Y@V?$Y@V?$Y@V?$Y@VX@NA@@@NB@@@NA@@@NB@@@NA@@@Z |
| 93 | ; CHECK: void __cdecl foo5(class NA::Y<class NB::Y<class NA::Y<class NB::Y<class NA::X>>>>) |
| 94 | |
| 95 | ?foo11@@YAXV?$Y@VX@NA@@@NA@@V1NB@@@Z |
| 96 | ; CHECK: void __cdecl foo11(class NA::Y<class NA::X>, class NB::Y<class NA::X>) |
| 97 | |
| 98 | ?foo112@@YAXV?$Y@VX@NA@@@NA@@V?$Y@VX@NB@@@NB@@@Z |
| 99 | ; CHECK: void __cdecl foo112(class NA::Y<class NA::X>, class NB::Y<class NB::X>) |
| 100 | |
| 101 | ?foo22@@YAXV?$Y@V?$Y@VX@NA@@@NB@@@NA@@V?$Y@V?$Y@VX@NA@@@NA@@@NB@@@Z |
| 102 | ; CHECK: void __cdecl foo22(class NA::Y<class NB::Y<class NA::X>>, class NB::Y<class NA::Y<class NA::X>>) |
| 103 | |
| 104 | ?foo@L@PR13207@@QAEXV?$I@VA@PR13207@@@2@@Z |
| 105 | ; CHECK: void __thiscall PR13207::L::foo(class PR13207::I<class PR13207::A>) |
| 106 | |
| 107 | ?foo@PR13207@@YAXV?$I@VA@PR13207@@@1@@Z |
| 108 | ; CHECK: void __cdecl PR13207::foo(class PR13207::I<class PR13207::A>) |
| 109 | |
| 110 | ?foo2@PR13207@@YAXV?$I@VA@PR13207@@@1@0@Z |
| 111 | ; CHECK: void __cdecl PR13207::foo2(class PR13207::I<class PR13207::A>, class PR13207::I<class PR13207::A>) |
| 112 | |
| 113 | ?bar@PR13207@@YAXV?$J@VA@PR13207@@VB@2@@1@@Z |
| 114 | ; CHECK: void __cdecl PR13207::bar(class PR13207::J<class PR13207::A, class PR13207::B>) |
| 115 | |
| 116 | ?spam@PR13207@@YAXV?$K@VA@PR13207@@VB@2@VC@2@@1@@Z |
| 117 | ; CHECK: void __cdecl PR13207::spam(class PR13207::K<class PR13207::A, class PR13207::B, class PR13207::C>) |
| 118 | |
| 119 | ?baz@PR13207@@YAXV?$K@DV?$F@D@PR13207@@V?$I@D@2@@1@@Z |
| 120 | ; CHECK: void __cdecl PR13207::baz(class PR13207::K<char, class PR13207::F<char>, class PR13207::I<char>>) |
| 121 | |
| 122 | ?qux@PR13207@@YAXV?$K@DV?$I@D@PR13207@@V12@@1@@Z |
| 123 | ; CHECK: void __cdecl PR13207::qux(class PR13207::K<char, class PR13207::I<char>, class PR13207::I<char>>) |
| 124 | |
| 125 | ?foo@NA@PR13207@@YAXV?$Y@VX@NA@PR13207@@@12@@Z |
| 126 | ; CHECK: void __cdecl PR13207::NA::foo(class PR13207::NA::Y<class PR13207::NA::X>) |
| 127 | |
| 128 | ?foofoo@NA@PR13207@@YAXV?$Y@V?$Y@VX@NA@PR13207@@@NA@PR13207@@@12@@Z |
| 129 | ; CHECK: void __cdecl PR13207::NA::foofoo(class PR13207::NA::Y<class PR13207::NA::Y<class PR13207::NA::X>>) |
| 130 | |
| 131 | ?foo@NB@PR13207@@YAXV?$Y@VX@NA@PR13207@@@12@@Z |
| 132 | ; CHECK: void __cdecl PR13207::NB::foo(class PR13207::NB::Y<class PR13207::NA::X>) |
| 133 | |
| 134 | ?bar@NB@PR13207@@YAXV?$Y@VX@NB@PR13207@@@NA@2@@Z |
| 135 | ; CHECK: void __cdecl PR13207::NB::bar(class PR13207::NA::Y<class PR13207::NB::X>) |
| 136 | |
| 137 | ?spam@NB@PR13207@@YAXV?$Y@VX@NA@PR13207@@@NA@2@@Z |
| 138 | ; CHECK: void __cdecl PR13207::NB::spam(class PR13207::NA::Y<class PR13207::NA::X>) |
| 139 | |
| 140 | ?foobar@NB@PR13207@@YAXV?$Y@V?$Y@VX@NB@PR13207@@@NB@PR13207@@@NA@2@V312@@Z |
| 141 | ; CHECK: void __cdecl PR13207::NB::foobar(class PR13207::NA::Y<class PR13207::NB::Y<class PR13207::NB::X>>, class PR13207::NB::Y<class PR13207::NB::Y<class PR13207::NB::X>>) |
| 142 | |
| 143 | ?foobarspam@NB@PR13207@@YAXV?$Y@VX@NB@PR13207@@@12@V?$Y@V?$Y@VX@NB@PR13207@@@NB@PR13207@@@NA@2@V412@@Z |
| 144 | ; CHECK: void __cdecl PR13207::NB::foobarspam(class PR13207::NB::Y<class PR13207::NB::X>, class PR13207::NA::Y<class PR13207::NB::Y<class PR13207::NB::X>>, class PR13207::NB::Y<class PR13207::NB::Y<class PR13207::NB::X>>) |
| 145 | |
| 146 | ?foobarbaz@NB@PR13207@@YAXV?$Y@VX@NB@PR13207@@@12@V?$Y@V?$Y@VX@NB@PR13207@@@NB@PR13207@@@NA@2@V412@2@Z |
| 147 | ; CHECK: void __cdecl PR13207::NB::foobarbaz(class PR13207::NB::Y<class PR13207::NB::X>, class PR13207::NA::Y<class PR13207::NB::Y<class PR13207::NB::X>>, class PR13207::NB::Y<class PR13207::NB::Y<class PR13207::NB::X>>, class PR13207::NB::Y<class PR13207::NB::Y<class PR13207::NB::X>>) |
| 148 | |
| 149 | ?foobarbazqux@NB@PR13207@@YAXV?$Y@VX@NB@PR13207@@@12@V?$Y@V?$Y@VX@NB@PR13207@@@NB@PR13207@@@NA@2@V412@2V?$Y@V?$Y@V?$Y@VX@NB@PR13207@@@NB@PR13207@@@NB@PR13207@@@52@@Z |
| 150 | ; CHECK: void __cdecl PR13207::NB::foobarbazqux(class PR13207::NB::Y<class PR13207::NB::X>, class PR13207::NA::Y<class PR13207::NB::Y<class PR13207::NB::X>>, class PR13207::NB::Y<class PR13207::NB::Y<class PR13207::NB::X>>, class PR13207::NB::Y<class PR13207::NB::Y<class PR13207::NB::X>>, class PR13207::NA::Y<class PR13207::NB::Y<class PR13207::NB::Y<class PR13207::NB::X>>>) |
| 151 | |
| 152 | ?foo@NC@PR13207@@YAXV?$Y@VX@NB@PR13207@@@12@@Z |
| 153 | ; CHECK: void __cdecl PR13207::NC::foo(class PR13207::NC::Y<class PR13207::NB::X>) |
| 154 | |
| 155 | ?foobar@NC@PR13207@@YAXV?$Y@V?$Y@V?$Y@VX@NA@PR13207@@@NA@PR13207@@@NB@PR13207@@@12@@Z |
| 156 | ; CHECK: void __cdecl PR13207::NC::foobar(class PR13207::NC::Y<class PR13207::NB::Y<class PR13207::NA::Y<class PR13207::NA::X>>>) |
| 157 | |
| 158 | ?fun_normal@fn_space@@YA?AURetVal@1@H@Z |
| 159 | ; CHECK: struct fn_space::RetVal __cdecl fn_space::fun_normal(int) |
| 160 | |
| 161 | ??$fun_tmpl@H@fn_space@@YA?AURetVal@0@ABH@Z |
| 162 | ; CHECK: struct fn_space::RetVal __cdecl fn_space::fun_tmpl<int>(int const &) |
| 163 | |
| 164 | ??$fun_tmpl_recurse@H$1??$fun_tmpl_recurse@H$1?ident@fn_space@@YA?AURetVal@2@H@Z@fn_space@@YA?AURetVal@1@H@Z@fn_space@@YA?AURetVal@0@H@Z |
| 165 | ; CHECK: struct fn_space::RetVal __cdecl fn_space::fun_tmpl_recurse<int, &struct fn_space::RetVal __cdecl fn_space::fun_tmpl_recurse<int, &struct fn_space::RetVal __cdecl fn_space::ident(int)>(int)>(int) |
| 166 | |
| 167 | ??$fun_tmpl_recurse@H$1?ident@fn_space@@YA?AURetVal@2@H@Z@fn_space@@YA?AURetVal@0@H@Z |
| 168 | ; CHECK: struct fn_space::RetVal __cdecl fn_space::fun_tmpl_recurse<int, &struct fn_space::RetVal __cdecl fn_space::ident(int)>(int) |
Zachary Turner | b6b924e | 2018-08-20 23:58:58 +0000 | [diff] [blame] | 169 | |
| 170 | ?AddEmitPasses@EmitAssemblyHelper@?A0x43583946@@AEAA_NAEAVPassManager@legacy@llvm@@W4BackendAction@clang@@AEAVraw_pwrite_stream@5@PEAV85@@Z |
| 171 | ; CHECK: bool __cdecl `anonymous namespace'::EmitAssemblyHelper::AddEmitPasses(class llvm::legacy::PassManager &, enum clang::BackendAction, class llvm::raw_pwrite_stream &, class llvm::raw_pwrite_stream *) |
Zachary Turner | 6568fb5 | 2018-08-29 23:56:09 +0000 | [diff] [blame] | 172 | |
| 173 | ??$forward@P8?$DecoderStream@$01@media@@AEXXZ@std@@YA$$QAP8?$DecoderStream@$01@media@@AEXXZAAP812@AEXXZ@Z |
| 174 | ; CHECK: void (__thiscall media::DecoderStream<2>::*&& __cdecl std::forward<void (__thiscall media::DecoderStream<2>::*)(void)>(void (__thiscall media::DecoderStream<2>::*&)(void)))(void) |