1 /*
2 *
3 *
4 * The LLVM Compiler Infrastructure
5 *
6 * This file is dual licensed under the MIT and the University of Illinois Open
7 * Source Licenses. See LICENSE.TXT for details.
8 *
9 * LICENSE.TXT contents is available as usr/src/lib/libsysdemangle/THIRDPARTY
10 */
11
12 // Is long double fp80? (Only x87 extended double has 64-bit mantissa)
13 #define LDBL_FP80 (__LDBL_MANT_DIG__ == 64)
14
15 #include <sysdemangle.h>
16 #include <sys/debug.h>
17 #include <string.h>
18 #include <stdlib.h>
19 #include <errno.h>
20
21 /* My masochism only goes so far... */
22
23 /* BEGIN CSTYLED */
24 static struct {
25 const char *mangled;
26 const char *demangled;
27 } pass[] = {
28 {"_Z1A", "A"},
29 {"_Z1Av", "A()"},
30 {"_Z1A1B1C", "A(B, C)"},
31 {"_Z4testI1A1BE1Cv", "C test<A, B>()"},
32 {"_Z4testI1A1BET0_T_S3_", "B test<A, B>(A, A)"},
33 {"_ZN1SgtEi", "S::operator>(int)"},
34 {"_ZrsI1QEiT_i", "int operator>><Q>(Q, int)"},
35 {"_ZN13dyldbootstrap5startEPK12macho_headeriPPKcl", "dyldbootstrap::start(macho_header const*, int, char const**, long)"},
36 {"_ZN4dyld17getExecutablePathEv", "dyld::getExecutablePath()"},
37 {"_ZN4dyld22mainExecutablePreboundEv", "dyld::mainExecutablePrebound()"},
38 {"_ZN4dyld14mainExecutableEv", "dyld::mainExecutable()"},
39 {"_ZN4dyld21findImageByMachHeaderEPK11mach_header", "dyld::findImageByMachHeader(mach_header const*)"},
40 {"_ZN4dyld26findImageContainingAddressEPKv", "dyld::findImageContainingAddress(void const*)"},
41 {"_ZN4dyld17clearErrorMessageEv", "dyld::clearErrorMessage()"},
|
1 /*
2 *
3 *
4 * The LLVM Compiler Infrastructure
5 *
6 * This file is dual licensed under the MIT and the University of Illinois Open
7 * Source Licenses. See LICENSE.TXT for details.
8 *
9 * LICENSE.TXT contents is available as usr/src/lib/libsysdemangle/THIRDPARTY
10 */
11
12 // Is long double fp80? (Only x87 extended double has 64-bit mantissa)
13 #define LDBL_FP80 (__LDBL_MANT_DIG__ == 64)
14
15 #include <sysdemangle.h>
16 #include <sys/debug.h>
17 #include <string.h>
18 #include <stdlib.h>
19 #include <errno.h>
20
21 /*
22 * My masochism only goes so far -- leave the mangled and unmangled strings
23 * as is, even if they go past 80 columns wide.
24 */
25
26 /* BEGIN CSTYLED */
27 static struct {
28 const char *mangled;
29 const char *demangled;
30 } pass[] = {
31 {"_Z1A", "A"},
32 {"_Z1Av", "A()"},
33 {"_Z1A1B1C", "A(B, C)"},
34 {"_Z4testI1A1BE1Cv", "C test<A, B>()"},
35 {"_Z4testI1A1BET0_T_S3_", "B test<A, B>(A, A)"},
36 {"_ZN1SgtEi", "S::operator>(int)"},
37 {"_ZrsI1QEiT_i", "int operator>><Q>(Q, int)"},
38 {"_ZN13dyldbootstrap5startEPK12macho_headeriPPKcl", "dyldbootstrap::start(macho_header const*, int, char const**, long)"},
39 {"_ZN4dyld17getExecutablePathEv", "dyld::getExecutablePath()"},
40 {"_ZN4dyld22mainExecutablePreboundEv", "dyld::mainExecutablePrebound()"},
41 {"_ZN4dyld14mainExecutableEv", "dyld::mainExecutable()"},
42 {"_ZN4dyld21findImageByMachHeaderEPK11mach_header", "dyld::findImageByMachHeader(mach_header const*)"},
43 {"_ZN4dyld26findImageContainingAddressEPKv", "dyld::findImageContainingAddress(void const*)"},
44 {"_ZN4dyld17clearErrorMessageEv", "dyld::clearErrorMessage()"},
|