Print this page
Rich's feedback
   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()"},


   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 <sys/debug.h>
  16 #include <string.h>
  17 #include <stdlib.h>
  18 #include <errno.h>
  19 #include <demangle-sys.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()"},