0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 //===-- llvm/Support/Dwarf.cpp - Dwarf Framework ----------------*- C++ -*-===//
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 //
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3 // The LLVM Compiler Infrastructure
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 //
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 // This file is distributed under the University of Illinois Open Source
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 // License. See LICENSE.TXT for details.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 //
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 //===----------------------------------------------------------------------===//
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 //
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10 // This file contains support for generic dwarf information.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
11 //
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
12 //===----------------------------------------------------------------------===//
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
13
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14 #include "llvm/Support/Dwarf.h"
|
83
|
15 #include "llvm/ADT/StringSwitch.h"
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 #include "llvm/Support/ErrorHandling.h"
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
17
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
18 using namespace llvm;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
19 using namespace dwarf;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
20
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
21 const char *llvm::dwarf::TagString(unsigned Tag) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
22 switch (Tag) {
|
83
|
23 default: return nullptr;
|
|
24 #define HANDLE_DW_TAG(ID, NAME) \
|
|
25 case DW_TAG_##NAME: \
|
|
26 return "DW_TAG_" #NAME;
|
|
27 #include "llvm/Support/Dwarf.def"
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
28 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
29 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
30
|
83
|
31 unsigned llvm::dwarf::getTag(StringRef TagString) {
|
|
32 return StringSwitch<unsigned>(TagString)
|
|
33 #define HANDLE_DW_TAG(ID, NAME) .Case("DW_TAG_" #NAME, DW_TAG_##NAME)
|
|
34 #include "llvm/Support/Dwarf.def"
|
|
35 .Default(DW_TAG_invalid);
|
|
36 }
|
|
37
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
38 const char *llvm::dwarf::ChildrenString(unsigned Children) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
39 switch (Children) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
40 case DW_CHILDREN_no: return "DW_CHILDREN_no";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
41 case DW_CHILDREN_yes: return "DW_CHILDREN_yes";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
42 }
|
77
|
43 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
44 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
45
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
46 const char *llvm::dwarf::AttributeString(unsigned Attribute) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
47 switch (Attribute) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
48 case DW_AT_sibling: return "DW_AT_sibling";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
49 case DW_AT_location: return "DW_AT_location";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
50 case DW_AT_name: return "DW_AT_name";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
51 case DW_AT_ordering: return "DW_AT_ordering";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
52 case DW_AT_byte_size: return "DW_AT_byte_size";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
53 case DW_AT_bit_offset: return "DW_AT_bit_offset";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
54 case DW_AT_bit_size: return "DW_AT_bit_size";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
55 case DW_AT_stmt_list: return "DW_AT_stmt_list";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
56 case DW_AT_low_pc: return "DW_AT_low_pc";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
57 case DW_AT_high_pc: return "DW_AT_high_pc";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
58 case DW_AT_language: return "DW_AT_language";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
59 case DW_AT_discr: return "DW_AT_discr";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
60 case DW_AT_discr_value: return "DW_AT_discr_value";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
61 case DW_AT_visibility: return "DW_AT_visibility";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
62 case DW_AT_import: return "DW_AT_import";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
63 case DW_AT_string_length: return "DW_AT_string_length";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
64 case DW_AT_common_reference: return "DW_AT_common_reference";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
65 case DW_AT_comp_dir: return "DW_AT_comp_dir";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
66 case DW_AT_const_value: return "DW_AT_const_value";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
67 case DW_AT_containing_type: return "DW_AT_containing_type";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
68 case DW_AT_default_value: return "DW_AT_default_value";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
69 case DW_AT_inline: return "DW_AT_inline";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
70 case DW_AT_is_optional: return "DW_AT_is_optional";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
71 case DW_AT_lower_bound: return "DW_AT_lower_bound";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
72 case DW_AT_producer: return "DW_AT_producer";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
73 case DW_AT_prototyped: return "DW_AT_prototyped";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
74 case DW_AT_return_addr: return "DW_AT_return_addr";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
75 case DW_AT_start_scope: return "DW_AT_start_scope";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
76 case DW_AT_bit_stride: return "DW_AT_bit_stride";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
77 case DW_AT_upper_bound: return "DW_AT_upper_bound";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
78 case DW_AT_abstract_origin: return "DW_AT_abstract_origin";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
79 case DW_AT_accessibility: return "DW_AT_accessibility";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
80 case DW_AT_address_class: return "DW_AT_address_class";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
81 case DW_AT_artificial: return "DW_AT_artificial";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
82 case DW_AT_base_types: return "DW_AT_base_types";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
83 case DW_AT_calling_convention: return "DW_AT_calling_convention";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
84 case DW_AT_count: return "DW_AT_count";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
85 case DW_AT_data_member_location: return "DW_AT_data_member_location";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
86 case DW_AT_decl_column: return "DW_AT_decl_column";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
87 case DW_AT_decl_file: return "DW_AT_decl_file";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
88 case DW_AT_decl_line: return "DW_AT_decl_line";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
89 case DW_AT_declaration: return "DW_AT_declaration";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
90 case DW_AT_discr_list: return "DW_AT_discr_list";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
91 case DW_AT_encoding: return "DW_AT_encoding";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
92 case DW_AT_external: return "DW_AT_external";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
93 case DW_AT_frame_base: return "DW_AT_frame_base";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
94 case DW_AT_friend: return "DW_AT_friend";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
95 case DW_AT_identifier_case: return "DW_AT_identifier_case";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
96 case DW_AT_macro_info: return "DW_AT_macro_info";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
97 case DW_AT_namelist_item: return "DW_AT_namelist_item";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
98 case DW_AT_priority: return "DW_AT_priority";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
99 case DW_AT_segment: return "DW_AT_segment";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
100 case DW_AT_specification: return "DW_AT_specification";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
101 case DW_AT_static_link: return "DW_AT_static_link";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
102 case DW_AT_type: return "DW_AT_type";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
103 case DW_AT_use_location: return "DW_AT_use_location";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
104 case DW_AT_variable_parameter: return "DW_AT_variable_parameter";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
105 case DW_AT_virtuality: return "DW_AT_virtuality";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
106 case DW_AT_vtable_elem_location: return "DW_AT_vtable_elem_location";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
107 case DW_AT_allocated: return "DW_AT_allocated";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
108 case DW_AT_associated: return "DW_AT_associated";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
109 case DW_AT_data_location: return "DW_AT_data_location";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
110 case DW_AT_byte_stride: return "DW_AT_byte_stride";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
111 case DW_AT_entry_pc: return "DW_AT_entry_pc";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
112 case DW_AT_use_UTF8: return "DW_AT_use_UTF8";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
113 case DW_AT_extension: return "DW_AT_extension";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
114 case DW_AT_ranges: return "DW_AT_ranges";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
115 case DW_AT_trampoline: return "DW_AT_trampoline";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
116 case DW_AT_call_column: return "DW_AT_call_column";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
117 case DW_AT_call_file: return "DW_AT_call_file";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
118 case DW_AT_call_line: return "DW_AT_call_line";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
119 case DW_AT_description: return "DW_AT_description";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
120 case DW_AT_binary_scale: return "DW_AT_binary_scale";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
121 case DW_AT_decimal_scale: return "DW_AT_decimal_scale";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
122 case DW_AT_small: return "DW_AT_small";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
123 case DW_AT_decimal_sign: return "DW_AT_decimal_sign";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
124 case DW_AT_digit_count: return "DW_AT_digit_count";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
125 case DW_AT_picture_string: return "DW_AT_picture_string";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
126 case DW_AT_mutable: return "DW_AT_mutable";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
127 case DW_AT_threads_scaled: return "DW_AT_threads_scaled";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
128 case DW_AT_explicit: return "DW_AT_explicit";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
129 case DW_AT_object_pointer: return "DW_AT_object_pointer";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
130 case DW_AT_endianity: return "DW_AT_endianity";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
131 case DW_AT_elemental: return "DW_AT_elemental";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
132 case DW_AT_pure: return "DW_AT_pure";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
133 case DW_AT_recursive: return "DW_AT_recursive";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
134 case DW_AT_signature: return "DW_AT_signature";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
135 case DW_AT_main_subprogram: return "DW_AT_main_subprogram";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
136 case DW_AT_data_bit_offset: return "DW_AT_data_bit_offset";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
137 case DW_AT_const_expr: return "DW_AT_const_expr";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
138 case DW_AT_enum_class: return "DW_AT_enum_class";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
139 case DW_AT_linkage_name: return "DW_AT_linkage_name";
|
77
|
140 case DW_AT_string_length_bit_size: return "DW_AT_string_length_bit_size";
|
|
141 case DW_AT_string_length_byte_size: return "DW_AT_string_length_byte_size";
|
|
142 case DW_AT_rank: return "DW_AT_rank";
|
|
143 case DW_AT_str_offsets_base: return "DW_AT_str_offsets_base";
|
|
144 case DW_AT_addr_base: return "DW_AT_addr_base";
|
|
145 case DW_AT_ranges_base: return "DW_AT_ranges_base";
|
|
146 case DW_AT_dwo_id: return "DW_AT_dwo_id";
|
|
147 case DW_AT_dwo_name: return "DW_AT_dwo_name";
|
|
148 case DW_AT_reference: return "DW_AT_reference";
|
|
149 case DW_AT_rvalue_reference: return "DW_AT_rvalue_reference";
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
150 case DW_AT_MIPS_loop_begin: return "DW_AT_MIPS_loop_begin";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
151 case DW_AT_MIPS_tail_loop_begin: return "DW_AT_MIPS_tail_loop_begin";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
152 case DW_AT_MIPS_epilog_begin: return "DW_AT_MIPS_epilog_begin";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
153 case DW_AT_MIPS_loop_unroll_factor: return "DW_AT_MIPS_loop_unroll_factor";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
154 case DW_AT_MIPS_software_pipeline_depth:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
155 return "DW_AT_MIPS_software_pipeline_depth";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
156 case DW_AT_MIPS_linkage_name: return "DW_AT_MIPS_linkage_name";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
157 case DW_AT_MIPS_stride: return "DW_AT_MIPS_stride";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
158 case DW_AT_MIPS_abstract_name: return "DW_AT_MIPS_abstract_name";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
159 case DW_AT_MIPS_clone_origin: return "DW_AT_MIPS_clone_origin";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
160 case DW_AT_MIPS_has_inlines: return "DW_AT_MIPS_has_inlines";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
161 case DW_AT_MIPS_stride_byte: return "DW_AT_MIPS_stride_byte";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
162 case DW_AT_MIPS_stride_elem: return "DW_AT_MIPS_stride_elem";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
163 case DW_AT_MIPS_ptr_dopetype: return "DW_AT_MIPS_ptr_dopetype";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
164 case DW_AT_MIPS_allocatable_dopetype:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
165 return "DW_AT_MIPS_allocatable_dopetype";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
166 case DW_AT_MIPS_assumed_shape_dopetype:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
167 return "DW_AT_MIPS_assumed_shape_dopetype";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
168 case DW_AT_sf_names: return "DW_AT_sf_names";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
169 case DW_AT_src_info: return "DW_AT_src_info";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
170 case DW_AT_mac_info: return "DW_AT_mac_info";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
171 case DW_AT_src_coords: return "DW_AT_src_coords";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
172 case DW_AT_body_begin: return "DW_AT_body_begin";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
173 case DW_AT_body_end: return "DW_AT_body_end";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
174 case DW_AT_GNU_vector: return "DW_AT_GNU_vector";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
175 case DW_AT_GNU_template_name: return "DW_AT_GNU_template_name";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
176 case DW_AT_GNU_odr_signature: return "DW_AT_GNU_odr_signature";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
177 case DW_AT_MIPS_assumed_size: return "DW_AT_MIPS_assumed_size";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
178 case DW_AT_lo_user: return "DW_AT_lo_user";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
179 case DW_AT_hi_user: return "DW_AT_hi_user";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
180 case DW_AT_APPLE_optimized: return "DW_AT_APPLE_optimized";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
181 case DW_AT_APPLE_flags: return "DW_AT_APPLE_flags";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
182 case DW_AT_APPLE_isa: return "DW_AT_APPLE_isa";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
183 case DW_AT_APPLE_block: return "DW_AT_APPLE_block";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
184 case DW_AT_APPLE_major_runtime_vers: return "DW_AT_APPLE_major_runtime_vers";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
185 case DW_AT_APPLE_runtime_class: return "DW_AT_APPLE_runtime_class";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
186 case DW_AT_APPLE_omit_frame_ptr: return "DW_AT_APPLE_omit_frame_ptr";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
187 case DW_AT_APPLE_property_name: return "DW_AT_APPLE_property_name";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
188 case DW_AT_APPLE_property_getter: return "DW_AT_APPLE_property_getter";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
189 case DW_AT_APPLE_property_setter: return "DW_AT_APPLE_property_setter";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
190 case DW_AT_APPLE_property_attribute: return "DW_AT_APPLE_property_attribute";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
191 case DW_AT_APPLE_property: return "DW_AT_APPLE_property";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
192 case DW_AT_APPLE_objc_complete_type: return "DW_AT_APPLE_objc_complete_type";
|
95
|
193 case DW_AT_LLVM_include_path: return "DW_AT_LLVM_include_path";
|
|
194 case DW_AT_LLVM_config_macros: return "DW_AT_LLVM_config_macros";
|
|
195 case DW_AT_LLVM_isysroot: return "DW_AT_LLVM_isysroot";
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
196
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
197 // DWARF5 Fission Extension Attribute
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
198 case DW_AT_GNU_dwo_name: return "DW_AT_GNU_dwo_name";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
199 case DW_AT_GNU_dwo_id: return "DW_AT_GNU_dwo_id";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
200 case DW_AT_GNU_ranges_base: return "DW_AT_GNU_ranges_base";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
201 case DW_AT_GNU_addr_base: return "DW_AT_GNU_addr_base";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
202 case DW_AT_GNU_pubnames: return "DW_AT_GNU_pubnames";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
203 case DW_AT_GNU_pubtypes: return "DW_AT_GNU_pubtypes";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
204 }
|
77
|
205 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
206 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
207
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
208 const char *llvm::dwarf::FormEncodingString(unsigned Encoding) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
209 switch (Encoding) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
210 case DW_FORM_addr: return "DW_FORM_addr";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
211 case DW_FORM_block2: return "DW_FORM_block2";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
212 case DW_FORM_block4: return "DW_FORM_block4";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
213 case DW_FORM_data2: return "DW_FORM_data2";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
214 case DW_FORM_data4: return "DW_FORM_data4";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
215 case DW_FORM_data8: return "DW_FORM_data8";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
216 case DW_FORM_string: return "DW_FORM_string";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
217 case DW_FORM_block: return "DW_FORM_block";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
218 case DW_FORM_block1: return "DW_FORM_block1";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
219 case DW_FORM_data1: return "DW_FORM_data1";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
220 case DW_FORM_flag: return "DW_FORM_flag";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
221 case DW_FORM_sdata: return "DW_FORM_sdata";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
222 case DW_FORM_strp: return "DW_FORM_strp";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
223 case DW_FORM_udata: return "DW_FORM_udata";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
224 case DW_FORM_ref_addr: return "DW_FORM_ref_addr";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
225 case DW_FORM_ref1: return "DW_FORM_ref1";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
226 case DW_FORM_ref2: return "DW_FORM_ref2";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
227 case DW_FORM_ref4: return "DW_FORM_ref4";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
228 case DW_FORM_ref8: return "DW_FORM_ref8";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
229 case DW_FORM_ref_udata: return "DW_FORM_ref_udata";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
230 case DW_FORM_indirect: return "DW_FORM_indirect";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
231 case DW_FORM_sec_offset: return "DW_FORM_sec_offset";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
232 case DW_FORM_exprloc: return "DW_FORM_exprloc";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
233 case DW_FORM_flag_present: return "DW_FORM_flag_present";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
234 case DW_FORM_ref_sig8: return "DW_FORM_ref_sig8";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
235
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
236 // DWARF5 Fission Extension Forms
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
237 case DW_FORM_GNU_addr_index: return "DW_FORM_GNU_addr_index";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
238 case DW_FORM_GNU_str_index: return "DW_FORM_GNU_str_index";
|
95
|
239
|
|
240 // Alternate debug sections proposal (output of "dwz" tool).
|
|
241 case DW_FORM_GNU_ref_alt: return "DW_FORM_GNU_ref_alt";
|
|
242 case DW_FORM_GNU_strp_alt: return "DW_FORM_GNU_strp_alt";
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
243 }
|
77
|
244 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
245 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
246
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
247 const char *llvm::dwarf::OperationEncodingString(unsigned Encoding) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
248 switch (Encoding) {
|
83
|
249 default: return nullptr;
|
|
250 #define HANDLE_DW_OP(ID, NAME) \
|
|
251 case DW_OP_##NAME: \
|
|
252 return "DW_OP_" #NAME;
|
|
253 #include "llvm/Support/Dwarf.def"
|
|
254 }
|
|
255 }
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
256
|
83
|
257 unsigned llvm::dwarf::getOperationEncoding(StringRef OperationEncodingString) {
|
|
258 return StringSwitch<unsigned>(OperationEncodingString)
|
|
259 #define HANDLE_DW_OP(ID, NAME) .Case("DW_OP_" #NAME, DW_OP_##NAME)
|
|
260 #include "llvm/Support/Dwarf.def"
|
|
261 .Default(0);
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
262 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
263
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
264 const char *llvm::dwarf::AttributeEncodingString(unsigned Encoding) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
265 switch (Encoding) {
|
83
|
266 default: return nullptr;
|
|
267 #define HANDLE_DW_ATE(ID, NAME) \
|
|
268 case DW_ATE_##NAME: \
|
|
269 return "DW_ATE_" #NAME;
|
|
270 #include "llvm/Support/Dwarf.def"
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
271 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
272 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
273
|
83
|
274 unsigned llvm::dwarf::getAttributeEncoding(StringRef EncodingString) {
|
|
275 return StringSwitch<unsigned>(EncodingString)
|
|
276 #define HANDLE_DW_ATE(ID, NAME) .Case("DW_ATE_" #NAME, DW_ATE_##NAME)
|
|
277 #include "llvm/Support/Dwarf.def"
|
|
278 .Default(0);
|
|
279 }
|
|
280
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
281 const char *llvm::dwarf::DecimalSignString(unsigned Sign) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
282 switch (Sign) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
283 case DW_DS_unsigned: return "DW_DS_unsigned";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
284 case DW_DS_leading_overpunch: return "DW_DS_leading_overpunch";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
285 case DW_DS_trailing_overpunch: return "DW_DS_trailing_overpunch";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
286 case DW_DS_leading_separate: return "DW_DS_leading_separate";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
287 case DW_DS_trailing_separate: return "DW_DS_trailing_separate";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
288 }
|
77
|
289 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
290 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
291
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
292 const char *llvm::dwarf::EndianityString(unsigned Endian) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
293 switch (Endian) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
294 case DW_END_default: return "DW_END_default";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
295 case DW_END_big: return "DW_END_big";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
296 case DW_END_little: return "DW_END_little";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
297 case DW_END_lo_user: return "DW_END_lo_user";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
298 case DW_END_hi_user: return "DW_END_hi_user";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
299 }
|
77
|
300 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
301 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
302
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
303 const char *llvm::dwarf::AccessibilityString(unsigned Access) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
304 switch (Access) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
305 // Accessibility codes
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
306 case DW_ACCESS_public: return "DW_ACCESS_public";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
307 case DW_ACCESS_protected: return "DW_ACCESS_protected";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
308 case DW_ACCESS_private: return "DW_ACCESS_private";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
309 }
|
77
|
310 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
311 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
312
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
313 const char *llvm::dwarf::VisibilityString(unsigned Visibility) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
314 switch (Visibility) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
315 case DW_VIS_local: return "DW_VIS_local";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
316 case DW_VIS_exported: return "DW_VIS_exported";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
317 case DW_VIS_qualified: return "DW_VIS_qualified";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
318 }
|
77
|
319 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
320 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
321
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
322 const char *llvm::dwarf::VirtualityString(unsigned Virtuality) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
323 switch (Virtuality) {
|
83
|
324 default:
|
|
325 return nullptr;
|
|
326 #define HANDLE_DW_VIRTUALITY(ID, NAME) \
|
|
327 case DW_VIRTUALITY_##NAME: \
|
|
328 return "DW_VIRTUALITY_" #NAME;
|
|
329 #include "llvm/Support/Dwarf.def"
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
330 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
331 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
332
|
83
|
333 unsigned llvm::dwarf::getVirtuality(StringRef VirtualityString) {
|
|
334 return StringSwitch<unsigned>(VirtualityString)
|
|
335 #define HANDLE_DW_VIRTUALITY(ID, NAME) \
|
|
336 .Case("DW_VIRTUALITY_" #NAME, DW_VIRTUALITY_##NAME)
|
|
337 #include "llvm/Support/Dwarf.def"
|
|
338 .Default(DW_VIRTUALITY_invalid);
|
|
339 }
|
|
340
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
341 const char *llvm::dwarf::LanguageString(unsigned Language) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
342 switch (Language) {
|
83
|
343 default:
|
|
344 return nullptr;
|
|
345 #define HANDLE_DW_LANG(ID, NAME) \
|
|
346 case DW_LANG_##NAME: \
|
|
347 return "DW_LANG_" #NAME;
|
|
348 #include "llvm/Support/Dwarf.def"
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
349 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
350 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
351
|
83
|
352 unsigned llvm::dwarf::getLanguage(StringRef LanguageString) {
|
|
353 return StringSwitch<unsigned>(LanguageString)
|
|
354 #define HANDLE_DW_LANG(ID, NAME) .Case("DW_LANG_" #NAME, DW_LANG_##NAME)
|
|
355 #include "llvm/Support/Dwarf.def"
|
|
356 .Default(0);
|
|
357 }
|
|
358
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
359 const char *llvm::dwarf::CaseString(unsigned Case) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
360 switch (Case) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
361 case DW_ID_case_sensitive: return "DW_ID_case_sensitive";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
362 case DW_ID_up_case: return "DW_ID_up_case";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
363 case DW_ID_down_case: return "DW_ID_down_case";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
364 case DW_ID_case_insensitive: return "DW_ID_case_insensitive";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
365 }
|
77
|
366 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
367 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
368
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
369 const char *llvm::dwarf::ConventionString(unsigned Convention) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
370 switch (Convention) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
371 case DW_CC_normal: return "DW_CC_normal";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
372 case DW_CC_program: return "DW_CC_program";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
373 case DW_CC_nocall: return "DW_CC_nocall";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
374 case DW_CC_lo_user: return "DW_CC_lo_user";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
375 case DW_CC_hi_user: return "DW_CC_hi_user";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
376 }
|
77
|
377 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
378 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
379
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
380 const char *llvm::dwarf::InlineCodeString(unsigned Code) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
381 switch (Code) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
382 case DW_INL_not_inlined: return "DW_INL_not_inlined";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
383 case DW_INL_inlined: return "DW_INL_inlined";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
384 case DW_INL_declared_not_inlined: return "DW_INL_declared_not_inlined";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
385 case DW_INL_declared_inlined: return "DW_INL_declared_inlined";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
386 }
|
77
|
387 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
388 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
389
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
390 const char *llvm::dwarf::ArrayOrderString(unsigned Order) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
391 switch (Order) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
392 case DW_ORD_row_major: return "DW_ORD_row_major";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
393 case DW_ORD_col_major: return "DW_ORD_col_major";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
394 }
|
77
|
395 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
396 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
397
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
398 const char *llvm::dwarf::DiscriminantString(unsigned Discriminant) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
399 switch (Discriminant) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
400 case DW_DSC_label: return "DW_DSC_label";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
401 case DW_DSC_range: return "DW_DSC_range";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
402 }
|
77
|
403 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
404 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
405
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
406 const char *llvm::dwarf::LNStandardString(unsigned Standard) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
407 switch (Standard) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
408 case DW_LNS_copy: return "DW_LNS_copy";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
409 case DW_LNS_advance_pc: return "DW_LNS_advance_pc";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
410 case DW_LNS_advance_line: return "DW_LNS_advance_line";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
411 case DW_LNS_set_file: return "DW_LNS_set_file";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
412 case DW_LNS_set_column: return "DW_LNS_set_column";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
413 case DW_LNS_negate_stmt: return "DW_LNS_negate_stmt";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
414 case DW_LNS_set_basic_block: return "DW_LNS_set_basic_block";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
415 case DW_LNS_const_add_pc: return "DW_LNS_const_add_pc";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
416 case DW_LNS_fixed_advance_pc: return "DW_LNS_fixed_advance_pc";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
417 case DW_LNS_set_prologue_end: return "DW_LNS_set_prologue_end";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
418 case DW_LNS_set_epilogue_begin: return "DW_LNS_set_epilogue_begin";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
419 case DW_LNS_set_isa: return "DW_LNS_set_isa";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
420 }
|
77
|
421 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
422 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
423
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
424 const char *llvm::dwarf::LNExtendedString(unsigned Encoding) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
425 switch (Encoding) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
426 // Line Number Extended Opcode Encodings
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
427 case DW_LNE_end_sequence: return "DW_LNE_end_sequence";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
428 case DW_LNE_set_address: return "DW_LNE_set_address";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
429 case DW_LNE_define_file: return "DW_LNE_define_file";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
430 case DW_LNE_set_discriminator: return "DW_LNE_set_discriminator";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
431 case DW_LNE_lo_user: return "DW_LNE_lo_user";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
432 case DW_LNE_hi_user: return "DW_LNE_hi_user";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
433 }
|
77
|
434 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
435 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
436
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
437 const char *llvm::dwarf::MacinfoString(unsigned Encoding) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
438 switch (Encoding) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
439 // Macinfo Type Encodings
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
440 case DW_MACINFO_define: return "DW_MACINFO_define";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
441 case DW_MACINFO_undef: return "DW_MACINFO_undef";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
442 case DW_MACINFO_start_file: return "DW_MACINFO_start_file";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
443 case DW_MACINFO_end_file: return "DW_MACINFO_end_file";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
444 case DW_MACINFO_vendor_ext: return "DW_MACINFO_vendor_ext";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
445 }
|
77
|
446 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
447 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
448
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
449 const char *llvm::dwarf::CallFrameString(unsigned Encoding) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
450 switch (Encoding) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
451 case DW_CFA_nop: return "DW_CFA_nop";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
452 case DW_CFA_advance_loc: return "DW_CFA_advance_loc";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
453 case DW_CFA_offset: return "DW_CFA_offset";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
454 case DW_CFA_restore: return "DW_CFA_restore";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
455 case DW_CFA_set_loc: return "DW_CFA_set_loc";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
456 case DW_CFA_advance_loc1: return "DW_CFA_advance_loc1";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
457 case DW_CFA_advance_loc2: return "DW_CFA_advance_loc2";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
458 case DW_CFA_advance_loc4: return "DW_CFA_advance_loc4";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
459 case DW_CFA_offset_extended: return "DW_CFA_offset_extended";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
460 case DW_CFA_restore_extended: return "DW_CFA_restore_extended";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
461 case DW_CFA_undefined: return "DW_CFA_undefined";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
462 case DW_CFA_same_value: return "DW_CFA_same_value";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
463 case DW_CFA_register: return "DW_CFA_register";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
464 case DW_CFA_remember_state: return "DW_CFA_remember_state";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
465 case DW_CFA_restore_state: return "DW_CFA_restore_state";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
466 case DW_CFA_def_cfa: return "DW_CFA_def_cfa";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
467 case DW_CFA_def_cfa_register: return "DW_CFA_def_cfa_register";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
468 case DW_CFA_def_cfa_offset: return "DW_CFA_def_cfa_offset";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
469 case DW_CFA_def_cfa_expression: return "DW_CFA_def_cfa_expression";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
470 case DW_CFA_expression: return "DW_CFA_expression";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
471 case DW_CFA_offset_extended_sf: return "DW_CFA_offset_extended_sf";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
472 case DW_CFA_def_cfa_sf: return "DW_CFA_def_cfa_sf";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
473 case DW_CFA_def_cfa_offset_sf: return "DW_CFA_def_cfa_offset_sf";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
474 case DW_CFA_val_offset: return "DW_CFA_val_offset";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
475 case DW_CFA_val_offset_sf: return "DW_CFA_val_offset_sf";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
476 case DW_CFA_val_expression: return "DW_CFA_val_expression";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
477 case DW_CFA_MIPS_advance_loc8: return "DW_CFA_MIPS_advance_loc8";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
478 case DW_CFA_GNU_window_save: return "DW_CFA_GNU_window_save";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
479 case DW_CFA_GNU_args_size: return "DW_CFA_GNU_args_size";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
480 case DW_CFA_lo_user: return "DW_CFA_lo_user";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
481 case DW_CFA_hi_user: return "DW_CFA_hi_user";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
482 }
|
77
|
483 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
484 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
485
|
83
|
486 const char *llvm::dwarf::ApplePropertyString(unsigned Prop) {
|
|
487 switch (Prop) {
|
|
488 case DW_APPLE_PROPERTY_readonly:
|
|
489 return "DW_APPLE_PROPERTY_readonly";
|
|
490 case DW_APPLE_PROPERTY_getter:
|
|
491 return "DW_APPLE_PROPERTY_getter";
|
|
492 case DW_APPLE_PROPERTY_assign:
|
|
493 return "DW_APPLE_PROPERTY_assign";
|
|
494 case DW_APPLE_PROPERTY_readwrite:
|
|
495 return "DW_APPLE_PROPERTY_readwrite";
|
|
496 case DW_APPLE_PROPERTY_retain:
|
|
497 return "DW_APPLE_PROPERTY_retain";
|
|
498 case DW_APPLE_PROPERTY_copy:
|
|
499 return "DW_APPLE_PROPERTY_copy";
|
|
500 case DW_APPLE_PROPERTY_nonatomic:
|
|
501 return "DW_APPLE_PROPERTY_nonatomic";
|
|
502 case DW_APPLE_PROPERTY_setter:
|
|
503 return "DW_APPLE_PROPERTY_setter";
|
|
504 case DW_APPLE_PROPERTY_atomic:
|
|
505 return "DW_APPLE_PROPERTY_atomic";
|
|
506 case DW_APPLE_PROPERTY_weak:
|
|
507 return "DW_APPLE_PROPERTY_weak";
|
|
508 case DW_APPLE_PROPERTY_strong:
|
|
509 return "DW_APPLE_PROPERTY_strong";
|
|
510 case DW_APPLE_PROPERTY_unsafe_unretained:
|
|
511 return "DW_APPLE_PROPERTY_unsafe_unretained";
|
|
512 }
|
|
513 return nullptr;
|
|
514 }
|
|
515
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
516 const char *llvm::dwarf::AtomTypeString(unsigned AT) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
517 switch (AT) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
518 case dwarf::DW_ATOM_null:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
519 return "DW_ATOM_null";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
520 case dwarf::DW_ATOM_die_offset:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
521 return "DW_ATOM_die_offset";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
522 case DW_ATOM_cu_offset:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
523 return "DW_ATOM_cu_offset";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
524 case DW_ATOM_die_tag:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
525 return "DW_ATOM_die_tag";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
526 case DW_ATOM_type_flags:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
527 return "DW_ATOM_type_flags";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
528 }
|
77
|
529 return nullptr;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
530 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
531
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
532 const char *llvm::dwarf::GDBIndexEntryKindString(GDBIndexEntryKind Kind) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
533 switch (Kind) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
534 case GIEK_NONE:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
535 return "NONE";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
536 case GIEK_TYPE:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
537 return "TYPE";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
538 case GIEK_VARIABLE:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
539 return "VARIABLE";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
540 case GIEK_FUNCTION:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
541 return "FUNCTION";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
542 case GIEK_OTHER:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
543 return "OTHER";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
544 case GIEK_UNUSED5:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
545 return "UNUSED5";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
546 case GIEK_UNUSED6:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
547 return "UNUSED6";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
548 case GIEK_UNUSED7:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
549 return "UNUSED7";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
550 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
551 llvm_unreachable("Unknown GDBIndexEntryKind value");
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
552 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
553
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
554 const char *llvm::dwarf::GDBIndexEntryLinkageString(GDBIndexEntryLinkage Linkage) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
555 switch (Linkage) {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
556 case GIEL_EXTERNAL:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
557 return "EXTERNAL";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
558 case GIEL_STATIC:
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
559 return "STATIC";
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
560 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
561 llvm_unreachable("Unknown GDBIndexEntryLinkage value");
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
562 }
|
77
|
563
|
|
564 const char *llvm::dwarf::AttributeValueString(uint16_t Attr, unsigned Val) {
|
|
565 switch (Attr) {
|
|
566 case DW_AT_accessibility:
|
|
567 return AccessibilityString(Val);
|
|
568 case DW_AT_virtuality:
|
|
569 return VirtualityString(Val);
|
|
570 case DW_AT_language:
|
|
571 return LanguageString(Val);
|
|
572 case DW_AT_encoding:
|
|
573 return AttributeEncodingString(Val);
|
|
574 case DW_AT_decimal_sign:
|
|
575 return DecimalSignString(Val);
|
|
576 case DW_AT_endianity:
|
|
577 return EndianityString(Val);
|
|
578 case DW_AT_visibility:
|
|
579 return VisibilityString(Val);
|
|
580 case DW_AT_identifier_case:
|
|
581 return CaseString(Val);
|
|
582 case DW_AT_calling_convention:
|
|
583 return ConventionString(Val);
|
|
584 case DW_AT_inline:
|
|
585 return InlineCodeString(Val);
|
|
586 case DW_AT_ordering:
|
|
587 return ArrayOrderString(Val);
|
|
588 case DW_AT_discr_value:
|
|
589 return DiscriminantString(Val);
|
|
590 }
|
|
591
|
|
592 return nullptr;
|
|
593 }
|