Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Move some code into simgrid::dwarf namespace
[simgrid.git] / src / mc / mc_dwarf_tagnames.cpp
1 /* Copyright (c) 2014-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 /* Warning: autogenerated, do not edit! */
8
9 #include <dwarf.h>
10 #include <elfutils/libdw.h>
11
12 #include <xbt/base.h>
13
14 namespace simgrid {
15 namespace dwarf {
16
17 /** \brief Get the name of a dwarf tag (DW_TAG_*) from its code
18  *
19  *  \param tag tag code (see the DWARF specification)
20  *  \return name of the tag
21  */
22 XBT_PRIVATE
23 const char *tagname(int tag)
24 {
25   switch (tag) {
26   case 0x01: return "DW_TAG_array_type";
27   case 0x02: return "DW_TAG_class_type";
28   case 0x03: return "DW_TAG_entry_point";
29   case 0x04: return "DW_TAG_enumeration_type";
30   case 0x05: return "DW_TAG_formal_parameter";
31   case 0x08: return "DW_TAG_imported_declaration";
32   case 0x0a: return "DW_TAG_label";
33   case 0x0b: return "DW_TAG_lexical_block";
34   case 0x0d: return "DW_TAG_member";
35   case 0x0f: return "DW_TAG_pointer_type";
36   case 0x10: return "DW_TAG_reference_type";
37   case 0x11: return "DW_TAG_compile_unit";
38   case 0x12: return "DW_TAG_string_type";
39   case 0x13: return "DW_TAG_structure_type";
40   case 0x15: return "DW_TAG_subroutine_type";
41   case 0x16: return "DW_TAG_typedef";
42   case 0x17: return "DW_TAG_union_type";
43   case 0x18: return "DW_TAG_unspecified_parameters";
44   case 0x19: return "DW_TAG_variant";
45   case 0x1a: return "DW_TAG_common_block";
46   case 0x1b: return "DW_TAG_common_inclusion";
47   case 0x1c: return "DW_TAG_inheritance";
48   case 0x1d: return "DW_TAG_inlined_subroutine";
49   case 0x1e: return "DW_TAG_module";
50   case 0x1f: return "DW_TAG_ptr_to_member_type";
51   case 0x20: return "DW_TAG_set_type";
52   case 0x21: return "DW_TAG_subrange_type";
53   case 0x22: return "DW_TAG_with_stmt";
54   case 0x23: return "DW_TAG_access_declaration";
55   case 0x24: return "DW_TAG_base_type";
56   case 0x25: return "DW_TAG_catch_block";
57   case 0x26: return "DW_TAG_const_type";
58   case 0x27: return "DW_TAG_constant";
59   case 0x28: return "DW_TAG_enumerator";
60   case 0x29: return "DW_TAG_file_type";
61   case 0x2a: return "DW_TAG_friend";
62   case 0x2b: return "DW_TAG_namelist";
63   case 0x2c: return "DW_TAG_namelist_item";
64   case 0x2d: return "DW_TAG_packed_type";
65   case 0x2e: return "DW_TAG_subprogram";
66   case 0x2f: return "DW_TAG_template_type_parameter";
67   case 0x30: return "DW_TAG_template_value_parameter";
68   case 0x31: return "DW_TAG_thrown_type";
69   case 0x32: return "DW_TAG_try_block";
70   case 0x33: return "DW_TAG_variant_part";
71   case 0x34: return "DW_TAG_variable";
72   case 0x35: return "DW_TAG_volatile_type";
73   case 0x36: return "DW_TAG_dwarf_procedure";
74   case 0x37: return "DW_TAG_restrict_type";
75   case 0x38: return "DW_TAG_interface_type";
76   case 0x39: return "DW_TAG_namespace";
77   case 0x3a: return "DW_TAG_imported_module";
78   case 0x3b: return "DW_TAG_unspecified_type";
79   case 0x3c: return "DW_TAG_partial_unit";
80   case 0x3d: return "DW_TAG_imported_unit";
81   case 0x3e: return "DW_TAG_mutable_type";
82   case 0x3f: return "DW_TAG_condition";
83   case 0x40: return "DW_TAG_shared_type";
84   case 0x41: return "DW_TAG_type_unit";
85   case 0x42: return "DW_TAG_rvalue_reference_type";
86   case 0x43: return "DW_TAG_template_alias";
87   case 0x4080: return "DW_TAG_lo_user";
88   case 0x4081: return "DW_TAG_MIPS_loop";
89   case 0x4101: return "DW_TAG_format_label";
90   case 0x4102: return "DW_TAG_function_template";
91   case 0x4103: return "DW_TAG_class_template";
92   case 0x4104: return "DW_TAG_GNU_BINCL";
93   case 0x4105: return "DW_TAG_GNU_EINCL";
94   case 0x4106: return "DW_TAG_GNU_template_template_param";
95   case 0x4107: return "DW_TAG_GNU_template_parameter_pack";
96   case 0x4108: return "DW_TAG_GNU_formal_parameter_pack";
97   case 0x4109: return "DW_TAG_GNU_call_site";
98   case 0x410a: return "DW_TAG_GNU_call_site_parameter";
99   case 0xffff: return "DW_TAG_hi_user";
100   case DW_TAG_invalid:
101     return "DW_TAG_invalid";
102   default:
103     return "DW_TAG_unknown";
104   }
105 }
106
107 }
108 }