LLVM API Documentation
00001 //===-- llvm/Support/Dwarf.cpp - Dwarf Framework ----------------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file contains support for generic dwarf information. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #include "llvm/Support/Dwarf.h" 00015 #include "llvm/Support/ErrorHandling.h" 00016 00017 using namespace llvm; 00018 using namespace dwarf; 00019 00020 /// TagString - Return the string for the specified tag. 00021 /// 00022 const char *llvm::dwarf::TagString(unsigned Tag) { 00023 switch (Tag) { 00024 case DW_TAG_array_type: return "DW_TAG_array_type"; 00025 case DW_TAG_class_type: return "DW_TAG_class_type"; 00026 case DW_TAG_entry_point: return "DW_TAG_entry_point"; 00027 case DW_TAG_enumeration_type: return "DW_TAG_enumeration_type"; 00028 case DW_TAG_formal_parameter: return "DW_TAG_formal_parameter"; 00029 case DW_TAG_imported_declaration: return "DW_TAG_imported_declaration"; 00030 case DW_TAG_label: return "DW_TAG_label"; 00031 case DW_TAG_lexical_block: return "DW_TAG_lexical_block"; 00032 case DW_TAG_member: return "DW_TAG_member"; 00033 case DW_TAG_pointer_type: return "DW_TAG_pointer_type"; 00034 case DW_TAG_reference_type: return "DW_TAG_reference_type"; 00035 case DW_TAG_compile_unit: return "DW_TAG_compile_unit"; 00036 case DW_TAG_string_type: return "DW_TAG_string_type"; 00037 case DW_TAG_structure_type: return "DW_TAG_structure_type"; 00038 case DW_TAG_subroutine_type: return "DW_TAG_subroutine_type"; 00039 case DW_TAG_typedef: return "DW_TAG_typedef"; 00040 case DW_TAG_union_type: return "DW_TAG_union_type"; 00041 case DW_TAG_unspecified_parameters: return "DW_TAG_unspecified_parameters"; 00042 case DW_TAG_variant: return "DW_TAG_variant"; 00043 case DW_TAG_common_block: return "DW_TAG_common_block"; 00044 case DW_TAG_common_inclusion: return "DW_TAG_common_inclusion"; 00045 case DW_TAG_inheritance: return "DW_TAG_inheritance"; 00046 case DW_TAG_inlined_subroutine: return "DW_TAG_inlined_subroutine"; 00047 case DW_TAG_module: return "DW_TAG_module"; 00048 case DW_TAG_ptr_to_member_type: return "DW_TAG_ptr_to_member_type"; 00049 case DW_TAG_set_type: return "DW_TAG_set_type"; 00050 case DW_TAG_subrange_type: return "DW_TAG_subrange_type"; 00051 case DW_TAG_with_stmt: return "DW_TAG_with_stmt"; 00052 case DW_TAG_access_declaration: return "DW_TAG_access_declaration"; 00053 case DW_TAG_base_type: return "DW_TAG_base_type"; 00054 case DW_TAG_catch_block: return "DW_TAG_catch_block"; 00055 case DW_TAG_const_type: return "DW_TAG_const_type"; 00056 case DW_TAG_constant: return "DW_TAG_constant"; 00057 case DW_TAG_enumerator: return "DW_TAG_enumerator"; 00058 case DW_TAG_file_type: return "DW_TAG_file_type"; 00059 case DW_TAG_friend: return "DW_TAG_friend"; 00060 case DW_TAG_namelist: return "DW_TAG_namelist"; 00061 case DW_TAG_namelist_item: return "DW_TAG_namelist_item"; 00062 case DW_TAG_packed_type: return "DW_TAG_packed_type"; 00063 case DW_TAG_subprogram: return "DW_TAG_subprogram"; 00064 case DW_TAG_template_type_parameter: return "DW_TAG_template_type_parameter"; 00065 case DW_TAG_template_value_parameter: return "DW_TAG_template_value_parameter"; 00066 case DW_TAG_thrown_type: return "DW_TAG_thrown_type"; 00067 case DW_TAG_try_block: return "DW_TAG_try_block"; 00068 case DW_TAG_variant_part: return "DW_TAG_variant_part"; 00069 case DW_TAG_variable: return "DW_TAG_variable"; 00070 case DW_TAG_volatile_type: return "DW_TAG_volatile_type"; 00071 case DW_TAG_dwarf_procedure: return "DW_TAG_dwarf_procedure"; 00072 case DW_TAG_restrict_type: return "DW_TAG_restrict_type"; 00073 case DW_TAG_interface_type: return "DW_TAG_interface_type"; 00074 case DW_TAG_namespace: return "DW_TAG_namespace"; 00075 case DW_TAG_imported_module: return "DW_TAG_imported_module"; 00076 case DW_TAG_unspecified_type: return "DW_TAG_unspecified_type"; 00077 case DW_TAG_partial_unit: return "DW_TAG_partial_unit"; 00078 case DW_TAG_imported_unit: return "DW_TAG_imported_unit"; 00079 case DW_TAG_condition: return "DW_TAG_condition"; 00080 case DW_TAG_shared_type: return "DW_TAG_shared_type"; 00081 case DW_TAG_lo_user: return "DW_TAG_lo_user"; 00082 case DW_TAG_hi_user: return "DW_TAG_hi_user"; 00083 case DW_TAG_auto_variable: return "DW_TAG_auto_variable"; 00084 case DW_TAG_arg_variable: return "DW_TAG_arg_variable"; 00085 case DW_TAG_rvalue_reference_type: return "DW_TAG_rvalue_reference_type"; 00086 case DW_TAG_template_alias: return "DW_TAG_template_alias"; 00087 case DW_TAG_coarray_type: return "DW_TAG_coarray_type"; 00088 case DW_TAG_generic_subrange: return "DW_TAG_generic_subrange"; 00089 case DW_TAG_dynamic_type: return "DW_TAG_dynamic_type"; 00090 case DW_TAG_MIPS_loop: return "DW_TAG_MIPS_loop"; 00091 case DW_TAG_type_unit: return "DW_TAG_type_unit"; 00092 case DW_TAG_format_label: return "DW_TAG_format_label"; 00093 case DW_TAG_function_template: return "DW_TAG_function_template"; 00094 case DW_TAG_class_template: return "DW_TAG_class_template"; 00095 case DW_TAG_GNU_template_template_param: 00096 return "DW_TAG_GNU_template_template_param"; 00097 case DW_TAG_GNU_template_parameter_pack: 00098 return "DW_TAG_GNU_template_parameter_pack"; 00099 case DW_TAG_GNU_formal_parameter_pack: 00100 return "DW_TAG_GNU_formal_parameter_pack"; 00101 case DW_TAG_APPLE_property: return "DW_TAG_APPLE_property"; 00102 } 00103 return nullptr; 00104 } 00105 00106 /// ChildrenString - Return the string for the specified children flag. 00107 /// 00108 const char *llvm::dwarf::ChildrenString(unsigned Children) { 00109 switch (Children) { 00110 case DW_CHILDREN_no: return "DW_CHILDREN_no"; 00111 case DW_CHILDREN_yes: return "DW_CHILDREN_yes"; 00112 } 00113 return nullptr; 00114 } 00115 00116 /// AttributeString - Return the string for the specified attribute. 00117 /// 00118 const char *llvm::dwarf::AttributeString(unsigned Attribute) { 00119 switch (Attribute) { 00120 case DW_AT_sibling: return "DW_AT_sibling"; 00121 case DW_AT_location: return "DW_AT_location"; 00122 case DW_AT_name: return "DW_AT_name"; 00123 case DW_AT_ordering: return "DW_AT_ordering"; 00124 case DW_AT_byte_size: return "DW_AT_byte_size"; 00125 case DW_AT_bit_offset: return "DW_AT_bit_offset"; 00126 case DW_AT_bit_size: return "DW_AT_bit_size"; 00127 case DW_AT_stmt_list: return "DW_AT_stmt_list"; 00128 case DW_AT_low_pc: return "DW_AT_low_pc"; 00129 case DW_AT_high_pc: return "DW_AT_high_pc"; 00130 case DW_AT_language: return "DW_AT_language"; 00131 case DW_AT_discr: return "DW_AT_discr"; 00132 case DW_AT_discr_value: return "DW_AT_discr_value"; 00133 case DW_AT_visibility: return "DW_AT_visibility"; 00134 case DW_AT_import: return "DW_AT_import"; 00135 case DW_AT_string_length: return "DW_AT_string_length"; 00136 case DW_AT_common_reference: return "DW_AT_common_reference"; 00137 case DW_AT_comp_dir: return "DW_AT_comp_dir"; 00138 case DW_AT_const_value: return "DW_AT_const_value"; 00139 case DW_AT_containing_type: return "DW_AT_containing_type"; 00140 case DW_AT_default_value: return "DW_AT_default_value"; 00141 case DW_AT_inline: return "DW_AT_inline"; 00142 case DW_AT_is_optional: return "DW_AT_is_optional"; 00143 case DW_AT_lower_bound: return "DW_AT_lower_bound"; 00144 case DW_AT_producer: return "DW_AT_producer"; 00145 case DW_AT_prototyped: return "DW_AT_prototyped"; 00146 case DW_AT_return_addr: return "DW_AT_return_addr"; 00147 case DW_AT_start_scope: return "DW_AT_start_scope"; 00148 case DW_AT_bit_stride: return "DW_AT_bit_stride"; 00149 case DW_AT_upper_bound: return "DW_AT_upper_bound"; 00150 case DW_AT_abstract_origin: return "DW_AT_abstract_origin"; 00151 case DW_AT_accessibility: return "DW_AT_accessibility"; 00152 case DW_AT_address_class: return "DW_AT_address_class"; 00153 case DW_AT_artificial: return "DW_AT_artificial"; 00154 case DW_AT_base_types: return "DW_AT_base_types"; 00155 case DW_AT_calling_convention: return "DW_AT_calling_convention"; 00156 case DW_AT_count: return "DW_AT_count"; 00157 case DW_AT_data_member_location: return "DW_AT_data_member_location"; 00158 case DW_AT_decl_column: return "DW_AT_decl_column"; 00159 case DW_AT_decl_file: return "DW_AT_decl_file"; 00160 case DW_AT_decl_line: return "DW_AT_decl_line"; 00161 case DW_AT_declaration: return "DW_AT_declaration"; 00162 case DW_AT_discr_list: return "DW_AT_discr_list"; 00163 case DW_AT_encoding: return "DW_AT_encoding"; 00164 case DW_AT_external: return "DW_AT_external"; 00165 case DW_AT_frame_base: return "DW_AT_frame_base"; 00166 case DW_AT_friend: return "DW_AT_friend"; 00167 case DW_AT_identifier_case: return "DW_AT_identifier_case"; 00168 case DW_AT_macro_info: return "DW_AT_macro_info"; 00169 case DW_AT_namelist_item: return "DW_AT_namelist_item"; 00170 case DW_AT_priority: return "DW_AT_priority"; 00171 case DW_AT_segment: return "DW_AT_segment"; 00172 case DW_AT_specification: return "DW_AT_specification"; 00173 case DW_AT_static_link: return "DW_AT_static_link"; 00174 case DW_AT_type: return "DW_AT_type"; 00175 case DW_AT_use_location: return "DW_AT_use_location"; 00176 case DW_AT_variable_parameter: return "DW_AT_variable_parameter"; 00177 case DW_AT_virtuality: return "DW_AT_virtuality"; 00178 case DW_AT_vtable_elem_location: return "DW_AT_vtable_elem_location"; 00179 case DW_AT_allocated: return "DW_AT_allocated"; 00180 case DW_AT_associated: return "DW_AT_associated"; 00181 case DW_AT_data_location: return "DW_AT_data_location"; 00182 case DW_AT_byte_stride: return "DW_AT_byte_stride"; 00183 case DW_AT_entry_pc: return "DW_AT_entry_pc"; 00184 case DW_AT_use_UTF8: return "DW_AT_use_UTF8"; 00185 case DW_AT_extension: return "DW_AT_extension"; 00186 case DW_AT_ranges: return "DW_AT_ranges"; 00187 case DW_AT_trampoline: return "DW_AT_trampoline"; 00188 case DW_AT_call_column: return "DW_AT_call_column"; 00189 case DW_AT_call_file: return "DW_AT_call_file"; 00190 case DW_AT_call_line: return "DW_AT_call_line"; 00191 case DW_AT_description: return "DW_AT_description"; 00192 case DW_AT_binary_scale: return "DW_AT_binary_scale"; 00193 case DW_AT_decimal_scale: return "DW_AT_decimal_scale"; 00194 case DW_AT_small: return "DW_AT_small"; 00195 case DW_AT_decimal_sign: return "DW_AT_decimal_sign"; 00196 case DW_AT_digit_count: return "DW_AT_digit_count"; 00197 case DW_AT_picture_string: return "DW_AT_picture_string"; 00198 case DW_AT_mutable: return "DW_AT_mutable"; 00199 case DW_AT_threads_scaled: return "DW_AT_threads_scaled"; 00200 case DW_AT_explicit: return "DW_AT_explicit"; 00201 case DW_AT_object_pointer: return "DW_AT_object_pointer"; 00202 case DW_AT_endianity: return "DW_AT_endianity"; 00203 case DW_AT_elemental: return "DW_AT_elemental"; 00204 case DW_AT_pure: return "DW_AT_pure"; 00205 case DW_AT_recursive: return "DW_AT_recursive"; 00206 case DW_AT_signature: return "DW_AT_signature"; 00207 case DW_AT_main_subprogram: return "DW_AT_main_subprogram"; 00208 case DW_AT_data_bit_offset: return "DW_AT_data_bit_offset"; 00209 case DW_AT_const_expr: return "DW_AT_const_expr"; 00210 case DW_AT_enum_class: return "DW_AT_enum_class"; 00211 case DW_AT_linkage_name: return "DW_AT_linkage_name"; 00212 case DW_AT_string_length_bit_size: return "DW_AT_string_length_bit_size"; 00213 case DW_AT_string_length_byte_size: return "DW_AT_string_length_byte_size"; 00214 case DW_AT_rank: return "DW_AT_rank"; 00215 case DW_AT_str_offsets_base: return "DW_AT_str_offsets_base"; 00216 case DW_AT_addr_base: return "DW_AT_addr_base"; 00217 case DW_AT_ranges_base: return "DW_AT_ranges_base"; 00218 case DW_AT_dwo_id: return "DW_AT_dwo_id"; 00219 case DW_AT_dwo_name: return "DW_AT_dwo_name"; 00220 case DW_AT_reference: return "DW_AT_reference"; 00221 case DW_AT_rvalue_reference: return "DW_AT_rvalue_reference"; 00222 case DW_AT_MIPS_loop_begin: return "DW_AT_MIPS_loop_begin"; 00223 case DW_AT_MIPS_tail_loop_begin: return "DW_AT_MIPS_tail_loop_begin"; 00224 case DW_AT_MIPS_epilog_begin: return "DW_AT_MIPS_epilog_begin"; 00225 case DW_AT_MIPS_loop_unroll_factor: return "DW_AT_MIPS_loop_unroll_factor"; 00226 case DW_AT_MIPS_software_pipeline_depth: 00227 return "DW_AT_MIPS_software_pipeline_depth"; 00228 case DW_AT_MIPS_linkage_name: return "DW_AT_MIPS_linkage_name"; 00229 case DW_AT_MIPS_stride: return "DW_AT_MIPS_stride"; 00230 case DW_AT_MIPS_abstract_name: return "DW_AT_MIPS_abstract_name"; 00231 case DW_AT_MIPS_clone_origin: return "DW_AT_MIPS_clone_origin"; 00232 case DW_AT_MIPS_has_inlines: return "DW_AT_MIPS_has_inlines"; 00233 case DW_AT_MIPS_stride_byte: return "DW_AT_MIPS_stride_byte"; 00234 case DW_AT_MIPS_stride_elem: return "DW_AT_MIPS_stride_elem"; 00235 case DW_AT_MIPS_ptr_dopetype: return "DW_AT_MIPS_ptr_dopetype"; 00236 case DW_AT_MIPS_allocatable_dopetype: 00237 return "DW_AT_MIPS_allocatable_dopetype"; 00238 case DW_AT_MIPS_assumed_shape_dopetype: 00239 return "DW_AT_MIPS_assumed_shape_dopetype"; 00240 case DW_AT_sf_names: return "DW_AT_sf_names"; 00241 case DW_AT_src_info: return "DW_AT_src_info"; 00242 case DW_AT_mac_info: return "DW_AT_mac_info"; 00243 case DW_AT_src_coords: return "DW_AT_src_coords"; 00244 case DW_AT_body_begin: return "DW_AT_body_begin"; 00245 case DW_AT_body_end: return "DW_AT_body_end"; 00246 case DW_AT_GNU_vector: return "DW_AT_GNU_vector"; 00247 case DW_AT_GNU_template_name: return "DW_AT_GNU_template_name"; 00248 case DW_AT_GNU_odr_signature: return "DW_AT_GNU_odr_signature"; 00249 case DW_AT_MIPS_assumed_size: return "DW_AT_MIPS_assumed_size"; 00250 case DW_AT_lo_user: return "DW_AT_lo_user"; 00251 case DW_AT_hi_user: return "DW_AT_hi_user"; 00252 case DW_AT_APPLE_optimized: return "DW_AT_APPLE_optimized"; 00253 case DW_AT_APPLE_flags: return "DW_AT_APPLE_flags"; 00254 case DW_AT_APPLE_isa: return "DW_AT_APPLE_isa"; 00255 case DW_AT_APPLE_block: return "DW_AT_APPLE_block"; 00256 case DW_AT_APPLE_major_runtime_vers: return "DW_AT_APPLE_major_runtime_vers"; 00257 case DW_AT_APPLE_runtime_class: return "DW_AT_APPLE_runtime_class"; 00258 case DW_AT_APPLE_omit_frame_ptr: return "DW_AT_APPLE_omit_frame_ptr"; 00259 case DW_AT_APPLE_property_name: return "DW_AT_APPLE_property_name"; 00260 case DW_AT_APPLE_property_getter: return "DW_AT_APPLE_property_getter"; 00261 case DW_AT_APPLE_property_setter: return "DW_AT_APPLE_property_setter"; 00262 case DW_AT_APPLE_property_attribute: return "DW_AT_APPLE_property_attribute"; 00263 case DW_AT_APPLE_property: return "DW_AT_APPLE_property"; 00264 case DW_AT_APPLE_objc_complete_type: return "DW_AT_APPLE_objc_complete_type"; 00265 00266 // DWARF5 Fission Extension Attribute 00267 case DW_AT_GNU_dwo_name: return "DW_AT_GNU_dwo_name"; 00268 case DW_AT_GNU_dwo_id: return "DW_AT_GNU_dwo_id"; 00269 case DW_AT_GNU_ranges_base: return "DW_AT_GNU_ranges_base"; 00270 case DW_AT_GNU_addr_base: return "DW_AT_GNU_addr_base"; 00271 case DW_AT_GNU_pubnames: return "DW_AT_GNU_pubnames"; 00272 case DW_AT_GNU_pubtypes: return "DW_AT_GNU_pubtypes"; 00273 } 00274 return nullptr; 00275 } 00276 00277 /// FormEncodingString - Return the string for the specified form encoding. 00278 /// 00279 const char *llvm::dwarf::FormEncodingString(unsigned Encoding) { 00280 switch (Encoding) { 00281 case DW_FORM_addr: return "DW_FORM_addr"; 00282 case DW_FORM_block2: return "DW_FORM_block2"; 00283 case DW_FORM_block4: return "DW_FORM_block4"; 00284 case DW_FORM_data2: return "DW_FORM_data2"; 00285 case DW_FORM_data4: return "DW_FORM_data4"; 00286 case DW_FORM_data8: return "DW_FORM_data8"; 00287 case DW_FORM_string: return "DW_FORM_string"; 00288 case DW_FORM_block: return "DW_FORM_block"; 00289 case DW_FORM_block1: return "DW_FORM_block1"; 00290 case DW_FORM_data1: return "DW_FORM_data1"; 00291 case DW_FORM_flag: return "DW_FORM_flag"; 00292 case DW_FORM_sdata: return "DW_FORM_sdata"; 00293 case DW_FORM_strp: return "DW_FORM_strp"; 00294 case DW_FORM_udata: return "DW_FORM_udata"; 00295 case DW_FORM_ref_addr: return "DW_FORM_ref_addr"; 00296 case DW_FORM_ref1: return "DW_FORM_ref1"; 00297 case DW_FORM_ref2: return "DW_FORM_ref2"; 00298 case DW_FORM_ref4: return "DW_FORM_ref4"; 00299 case DW_FORM_ref8: return "DW_FORM_ref8"; 00300 case DW_FORM_ref_udata: return "DW_FORM_ref_udata"; 00301 case DW_FORM_indirect: return "DW_FORM_indirect"; 00302 case DW_FORM_sec_offset: return "DW_FORM_sec_offset"; 00303 case DW_FORM_exprloc: return "DW_FORM_exprloc"; 00304 case DW_FORM_flag_present: return "DW_FORM_flag_present"; 00305 case DW_FORM_ref_sig8: return "DW_FORM_ref_sig8"; 00306 00307 // DWARF5 Fission Extension Forms 00308 case DW_FORM_GNU_addr_index: return "DW_FORM_GNU_addr_index"; 00309 case DW_FORM_GNU_str_index: return "DW_FORM_GNU_str_index"; 00310 } 00311 return nullptr; 00312 } 00313 00314 /// OperationEncodingString - Return the string for the specified operation 00315 /// encoding. 00316 const char *llvm::dwarf::OperationEncodingString(unsigned Encoding) { 00317 switch (Encoding) { 00318 case DW_OP_addr: return "DW_OP_addr"; 00319 case DW_OP_deref: return "DW_OP_deref"; 00320 case DW_OP_const1u: return "DW_OP_const1u"; 00321 case DW_OP_const1s: return "DW_OP_const1s"; 00322 case DW_OP_const2u: return "DW_OP_const2u"; 00323 case DW_OP_const2s: return "DW_OP_const2s"; 00324 case DW_OP_const4u: return "DW_OP_const4u"; 00325 case DW_OP_const4s: return "DW_OP_const4s"; 00326 case DW_OP_const8u: return "DW_OP_const8u"; 00327 case DW_OP_const8s: return "DW_OP_const8s"; 00328 case DW_OP_constu: return "DW_OP_constu"; 00329 case DW_OP_consts: return "DW_OP_consts"; 00330 case DW_OP_dup: return "DW_OP_dup"; 00331 case DW_OP_drop: return "DW_OP_drop"; 00332 case DW_OP_over: return "DW_OP_over"; 00333 case DW_OP_pick: return "DW_OP_pick"; 00334 case DW_OP_swap: return "DW_OP_swap"; 00335 case DW_OP_rot: return "DW_OP_rot"; 00336 case DW_OP_xderef: return "DW_OP_xderef"; 00337 case DW_OP_abs: return "DW_OP_abs"; 00338 case DW_OP_and: return "DW_OP_and"; 00339 case DW_OP_div: return "DW_OP_div"; 00340 case DW_OP_minus: return "DW_OP_minus"; 00341 case DW_OP_mod: return "DW_OP_mod"; 00342 case DW_OP_mul: return "DW_OP_mul"; 00343 case DW_OP_neg: return "DW_OP_neg"; 00344 case DW_OP_not: return "DW_OP_not"; 00345 case DW_OP_or: return "DW_OP_or"; 00346 case DW_OP_plus: return "DW_OP_plus"; 00347 case DW_OP_plus_uconst: return "DW_OP_plus_uconst"; 00348 case DW_OP_shl: return "DW_OP_shl"; 00349 case DW_OP_shr: return "DW_OP_shr"; 00350 case DW_OP_shra: return "DW_OP_shra"; 00351 case DW_OP_xor: return "DW_OP_xor"; 00352 case DW_OP_skip: return "DW_OP_skip"; 00353 case DW_OP_bra: return "DW_OP_bra"; 00354 case DW_OP_eq: return "DW_OP_eq"; 00355 case DW_OP_ge: return "DW_OP_ge"; 00356 case DW_OP_gt: return "DW_OP_gt"; 00357 case DW_OP_le: return "DW_OP_le"; 00358 case DW_OP_lt: return "DW_OP_lt"; 00359 case DW_OP_ne: return "DW_OP_ne"; 00360 case DW_OP_lit0: return "DW_OP_lit0"; 00361 case DW_OP_lit1: return "DW_OP_lit1"; 00362 case DW_OP_lit2: return "DW_OP_lit2"; 00363 case DW_OP_lit3: return "DW_OP_lit3"; 00364 case DW_OP_lit4: return "DW_OP_lit4"; 00365 case DW_OP_lit5: return "DW_OP_lit5"; 00366 case DW_OP_lit6: return "DW_OP_lit6"; 00367 case DW_OP_lit7: return "DW_OP_lit7"; 00368 case DW_OP_lit8: return "DW_OP_lit8"; 00369 case DW_OP_lit9: return "DW_OP_lit9"; 00370 case DW_OP_lit10: return "DW_OP_lit10"; 00371 case DW_OP_lit11: return "DW_OP_lit11"; 00372 case DW_OP_lit12: return "DW_OP_lit12"; 00373 case DW_OP_lit13: return "DW_OP_lit13"; 00374 case DW_OP_lit14: return "DW_OP_lit14"; 00375 case DW_OP_lit15: return "DW_OP_lit15"; 00376 case DW_OP_lit16: return "DW_OP_lit16"; 00377 case DW_OP_lit17: return "DW_OP_lit17"; 00378 case DW_OP_lit18: return "DW_OP_lit18"; 00379 case DW_OP_lit19: return "DW_OP_lit19"; 00380 case DW_OP_lit20: return "DW_OP_lit20"; 00381 case DW_OP_lit21: return "DW_OP_lit21"; 00382 case DW_OP_lit22: return "DW_OP_lit22"; 00383 case DW_OP_lit23: return "DW_OP_lit23"; 00384 case DW_OP_lit24: return "DW_OP_lit24"; 00385 case DW_OP_lit25: return "DW_OP_lit25"; 00386 case DW_OP_lit26: return "DW_OP_lit26"; 00387 case DW_OP_lit27: return "DW_OP_lit27"; 00388 case DW_OP_lit28: return "DW_OP_lit28"; 00389 case DW_OP_lit29: return "DW_OP_lit29"; 00390 case DW_OP_lit30: return "DW_OP_lit30"; 00391 case DW_OP_lit31: return "DW_OP_lit31"; 00392 case DW_OP_reg0: return "DW_OP_reg0"; 00393 case DW_OP_reg1: return "DW_OP_reg1"; 00394 case DW_OP_reg2: return "DW_OP_reg2"; 00395 case DW_OP_reg3: return "DW_OP_reg3"; 00396 case DW_OP_reg4: return "DW_OP_reg4"; 00397 case DW_OP_reg5: return "DW_OP_reg5"; 00398 case DW_OP_reg6: return "DW_OP_reg6"; 00399 case DW_OP_reg7: return "DW_OP_reg7"; 00400 case DW_OP_reg8: return "DW_OP_reg8"; 00401 case DW_OP_reg9: return "DW_OP_reg9"; 00402 case DW_OP_reg10: return "DW_OP_reg10"; 00403 case DW_OP_reg11: return "DW_OP_reg11"; 00404 case DW_OP_reg12: return "DW_OP_reg12"; 00405 case DW_OP_reg13: return "DW_OP_reg13"; 00406 case DW_OP_reg14: return "DW_OP_reg14"; 00407 case DW_OP_reg15: return "DW_OP_reg15"; 00408 case DW_OP_reg16: return "DW_OP_reg16"; 00409 case DW_OP_reg17: return "DW_OP_reg17"; 00410 case DW_OP_reg18: return "DW_OP_reg18"; 00411 case DW_OP_reg19: return "DW_OP_reg19"; 00412 case DW_OP_reg20: return "DW_OP_reg20"; 00413 case DW_OP_reg21: return "DW_OP_reg21"; 00414 case DW_OP_reg22: return "DW_OP_reg22"; 00415 case DW_OP_reg23: return "DW_OP_reg23"; 00416 case DW_OP_reg24: return "DW_OP_reg24"; 00417 case DW_OP_reg25: return "DW_OP_reg25"; 00418 case DW_OP_reg26: return "DW_OP_reg26"; 00419 case DW_OP_reg27: return "DW_OP_reg27"; 00420 case DW_OP_reg28: return "DW_OP_reg28"; 00421 case DW_OP_reg29: return "DW_OP_reg29"; 00422 case DW_OP_reg30: return "DW_OP_reg30"; 00423 case DW_OP_reg31: return "DW_OP_reg31"; 00424 case DW_OP_breg0: return "DW_OP_breg0"; 00425 case DW_OP_breg1: return "DW_OP_breg1"; 00426 case DW_OP_breg2: return "DW_OP_breg2"; 00427 case DW_OP_breg3: return "DW_OP_breg3"; 00428 case DW_OP_breg4: return "DW_OP_breg4"; 00429 case DW_OP_breg5: return "DW_OP_breg5"; 00430 case DW_OP_breg6: return "DW_OP_breg6"; 00431 case DW_OP_breg7: return "DW_OP_breg7"; 00432 case DW_OP_breg8: return "DW_OP_breg8"; 00433 case DW_OP_breg9: return "DW_OP_breg9"; 00434 case DW_OP_breg10: return "DW_OP_breg10"; 00435 case DW_OP_breg11: return "DW_OP_breg11"; 00436 case DW_OP_breg12: return "DW_OP_breg12"; 00437 case DW_OP_breg13: return "DW_OP_breg13"; 00438 case DW_OP_breg14: return "DW_OP_breg14"; 00439 case DW_OP_breg15: return "DW_OP_breg15"; 00440 case DW_OP_breg16: return "DW_OP_breg16"; 00441 case DW_OP_breg17: return "DW_OP_breg17"; 00442 case DW_OP_breg18: return "DW_OP_breg18"; 00443 case DW_OP_breg19: return "DW_OP_breg19"; 00444 case DW_OP_breg20: return "DW_OP_breg20"; 00445 case DW_OP_breg21: return "DW_OP_breg21"; 00446 case DW_OP_breg22: return "DW_OP_breg22"; 00447 case DW_OP_breg23: return "DW_OP_breg23"; 00448 case DW_OP_breg24: return "DW_OP_breg24"; 00449 case DW_OP_breg25: return "DW_OP_breg25"; 00450 case DW_OP_breg26: return "DW_OP_breg26"; 00451 case DW_OP_breg27: return "DW_OP_breg27"; 00452 case DW_OP_breg28: return "DW_OP_breg28"; 00453 case DW_OP_breg29: return "DW_OP_breg29"; 00454 case DW_OP_breg30: return "DW_OP_breg30"; 00455 case DW_OP_breg31: return "DW_OP_breg31"; 00456 case DW_OP_regx: return "DW_OP_regx"; 00457 case DW_OP_fbreg: return "DW_OP_fbreg"; 00458 case DW_OP_bregx: return "DW_OP_bregx"; 00459 case DW_OP_piece: return "DW_OP_piece"; 00460 case DW_OP_deref_size: return "DW_OP_deref_size"; 00461 case DW_OP_xderef_size: return "DW_OP_xderef_size"; 00462 case DW_OP_nop: return "DW_OP_nop"; 00463 case DW_OP_push_object_address: return "DW_OP_push_object_address"; 00464 case DW_OP_call2: return "DW_OP_call2"; 00465 case DW_OP_call4: return "DW_OP_call4"; 00466 case DW_OP_call_ref: return "DW_OP_call_ref"; 00467 case DW_OP_form_tls_address: return "DW_OP_form_tls_address"; 00468 case DW_OP_call_frame_cfa: return "DW_OP_call_frame_cfa"; 00469 case DW_OP_bit_piece: return "DW_OP_bit_piece"; 00470 case DW_OP_implicit_value: return "DW_OP_implicit_value"; 00471 case DW_OP_stack_value: return "DW_OP_stack_value"; 00472 00473 // GNU thread-local storage 00474 case DW_OP_GNU_push_tls_address: return "DW_OP_GNU_push_tls_address"; 00475 00476 // DWARF5 Fission Proposal Op Extensions 00477 case DW_OP_GNU_addr_index: return "DW_OP_GNU_addr_index"; 00478 case DW_OP_GNU_const_index: return "DW_OP_GNU_const_index"; 00479 } 00480 return nullptr; 00481 } 00482 00483 /// AttributeEncodingString - Return the string for the specified attribute 00484 /// encoding. 00485 const char *llvm::dwarf::AttributeEncodingString(unsigned Encoding) { 00486 switch (Encoding) { 00487 case DW_ATE_address: return "DW_ATE_address"; 00488 case DW_ATE_boolean: return "DW_ATE_boolean"; 00489 case DW_ATE_complex_float: return "DW_ATE_complex_float"; 00490 case DW_ATE_float: return "DW_ATE_float"; 00491 case DW_ATE_signed: return "DW_ATE_signed"; 00492 case DW_ATE_signed_char: return "DW_ATE_signed_char"; 00493 case DW_ATE_unsigned: return "DW_ATE_unsigned"; 00494 case DW_ATE_unsigned_char: return "DW_ATE_unsigned_char"; 00495 case DW_ATE_imaginary_float: return "DW_ATE_imaginary_float"; 00496 case DW_ATE_UTF: return "DW_ATE_UTF"; 00497 case DW_ATE_packed_decimal: return "DW_ATE_packed_decimal"; 00498 case DW_ATE_numeric_string: return "DW_ATE_numeric_string"; 00499 case DW_ATE_edited: return "DW_ATE_edited"; 00500 case DW_ATE_signed_fixed: return "DW_ATE_signed_fixed"; 00501 case DW_ATE_unsigned_fixed: return "DW_ATE_unsigned_fixed"; 00502 case DW_ATE_decimal_float: return "DW_ATE_decimal_float"; 00503 case DW_ATE_lo_user: return "DW_ATE_lo_user"; 00504 case DW_ATE_hi_user: return "DW_ATE_hi_user"; 00505 } 00506 return nullptr; 00507 } 00508 00509 /// DecimalSignString - Return the string for the specified decimal sign 00510 /// attribute. 00511 const char *llvm::dwarf::DecimalSignString(unsigned Sign) { 00512 switch (Sign) { 00513 case DW_DS_unsigned: return "DW_DS_unsigned"; 00514 case DW_DS_leading_overpunch: return "DW_DS_leading_overpunch"; 00515 case DW_DS_trailing_overpunch: return "DW_DS_trailing_overpunch"; 00516 case DW_DS_leading_separate: return "DW_DS_leading_separate"; 00517 case DW_DS_trailing_separate: return "DW_DS_trailing_separate"; 00518 } 00519 return nullptr; 00520 } 00521 00522 /// EndianityString - Return the string for the specified endianity. 00523 /// 00524 const char *llvm::dwarf::EndianityString(unsigned Endian) { 00525 switch (Endian) { 00526 case DW_END_default: return "DW_END_default"; 00527 case DW_END_big: return "DW_END_big"; 00528 case DW_END_little: return "DW_END_little"; 00529 case DW_END_lo_user: return "DW_END_lo_user"; 00530 case DW_END_hi_user: return "DW_END_hi_user"; 00531 } 00532 return nullptr; 00533 } 00534 00535 /// AccessibilityString - Return the string for the specified accessibility. 00536 /// 00537 const char *llvm::dwarf::AccessibilityString(unsigned Access) { 00538 switch (Access) { 00539 // Accessibility codes 00540 case DW_ACCESS_public: return "DW_ACCESS_public"; 00541 case DW_ACCESS_protected: return "DW_ACCESS_protected"; 00542 case DW_ACCESS_private: return "DW_ACCESS_private"; 00543 } 00544 return nullptr; 00545 } 00546 00547 /// VisibilityString - Return the string for the specified visibility. 00548 /// 00549 const char *llvm::dwarf::VisibilityString(unsigned Visibility) { 00550 switch (Visibility) { 00551 case DW_VIS_local: return "DW_VIS_local"; 00552 case DW_VIS_exported: return "DW_VIS_exported"; 00553 case DW_VIS_qualified: return "DW_VIS_qualified"; 00554 } 00555 return nullptr; 00556 } 00557 00558 /// VirtualityString - Return the string for the specified virtuality. 00559 /// 00560 const char *llvm::dwarf::VirtualityString(unsigned Virtuality) { 00561 switch (Virtuality) { 00562 case DW_VIRTUALITY_none: return "DW_VIRTUALITY_none"; 00563 case DW_VIRTUALITY_virtual: return "DW_VIRTUALITY_virtual"; 00564 case DW_VIRTUALITY_pure_virtual: return "DW_VIRTUALITY_pure_virtual"; 00565 } 00566 return nullptr; 00567 } 00568 00569 /// LanguageString - Return the string for the specified language. 00570 /// 00571 const char *llvm::dwarf::LanguageString(unsigned Language) { 00572 switch (Language) { 00573 case DW_LANG_C89: return "DW_LANG_C89"; 00574 case DW_LANG_C: return "DW_LANG_C"; 00575 case DW_LANG_Ada83: return "DW_LANG_Ada83"; 00576 case DW_LANG_C_plus_plus: return "DW_LANG_C_plus_plus"; 00577 case DW_LANG_Cobol74: return "DW_LANG_Cobol74"; 00578 case DW_LANG_Cobol85: return "DW_LANG_Cobol85"; 00579 case DW_LANG_Fortran77: return "DW_LANG_Fortran77"; 00580 case DW_LANG_Fortran90: return "DW_LANG_Fortran90"; 00581 case DW_LANG_Pascal83: return "DW_LANG_Pascal83"; 00582 case DW_LANG_Modula2: return "DW_LANG_Modula2"; 00583 case DW_LANG_Java: return "DW_LANG_Java"; 00584 case DW_LANG_C99: return "DW_LANG_C99"; 00585 case DW_LANG_Ada95: return "DW_LANG_Ada95"; 00586 case DW_LANG_Fortran95: return "DW_LANG_Fortran95"; 00587 case DW_LANG_PLI: return "DW_LANG_PLI"; 00588 case DW_LANG_ObjC: return "DW_LANG_ObjC"; 00589 case DW_LANG_ObjC_plus_plus: return "DW_LANG_ObjC_plus_plus"; 00590 case DW_LANG_UPC: return "DW_LANG_UPC"; 00591 case DW_LANG_D: return "DW_LANG_D"; 00592 case DW_LANG_Python: return "DW_LANG_Python"; 00593 case DW_LANG_OpenCL: return "DW_LANG_OpenCL"; 00594 case DW_LANG_Go: return "DW_LANG_Go"; 00595 case DW_LANG_Modula3: return "DW_LANG_Modula3"; 00596 case DW_LANG_Haskell: return "DW_LANG_Haskell"; 00597 case DW_LANG_C_plus_plus_03: return "DW_LANG_C_plus_plus_03"; 00598 case DW_LANG_C_plus_plus_11: return "DW_LANG_C_plus_plus_11"; 00599 case DW_LANG_OCaml: return "DW_LANG_OCaml"; 00600 case DW_LANG_lo_user: return "DW_LANG_lo_user"; 00601 case DW_LANG_Mips_Assembler: return "DW_LANG_Mips_Assembler"; 00602 case DW_LANG_hi_user: return "DW_LANG_hi_user"; 00603 } 00604 return nullptr; 00605 } 00606 00607 /// CaseString - Return the string for the specified identifier case. 00608 /// 00609 const char *llvm::dwarf::CaseString(unsigned Case) { 00610 switch (Case) { 00611 case DW_ID_case_sensitive: return "DW_ID_case_sensitive"; 00612 case DW_ID_up_case: return "DW_ID_up_case"; 00613 case DW_ID_down_case: return "DW_ID_down_case"; 00614 case DW_ID_case_insensitive: return "DW_ID_case_insensitive"; 00615 } 00616 return nullptr; 00617 } 00618 00619 /// ConventionString - Return the string for the specified calling convention. 00620 /// 00621 const char *llvm::dwarf::ConventionString(unsigned Convention) { 00622 switch (Convention) { 00623 case DW_CC_normal: return "DW_CC_normal"; 00624 case DW_CC_program: return "DW_CC_program"; 00625 case DW_CC_nocall: return "DW_CC_nocall"; 00626 case DW_CC_lo_user: return "DW_CC_lo_user"; 00627 case DW_CC_hi_user: return "DW_CC_hi_user"; 00628 } 00629 return nullptr; 00630 } 00631 00632 /// InlineCodeString - Return the string for the specified inline code. 00633 /// 00634 const char *llvm::dwarf::InlineCodeString(unsigned Code) { 00635 switch (Code) { 00636 case DW_INL_not_inlined: return "DW_INL_not_inlined"; 00637 case DW_INL_inlined: return "DW_INL_inlined"; 00638 case DW_INL_declared_not_inlined: return "DW_INL_declared_not_inlined"; 00639 case DW_INL_declared_inlined: return "DW_INL_declared_inlined"; 00640 } 00641 return nullptr; 00642 } 00643 00644 /// ArrayOrderString - Return the string for the specified array order. 00645 /// 00646 const char *llvm::dwarf::ArrayOrderString(unsigned Order) { 00647 switch (Order) { 00648 case DW_ORD_row_major: return "DW_ORD_row_major"; 00649 case DW_ORD_col_major: return "DW_ORD_col_major"; 00650 } 00651 return nullptr; 00652 } 00653 00654 /// DiscriminantString - Return the string for the specified discriminant 00655 /// descriptor. 00656 const char *llvm::dwarf::DiscriminantString(unsigned Discriminant) { 00657 switch (Discriminant) { 00658 case DW_DSC_label: return "DW_DSC_label"; 00659 case DW_DSC_range: return "DW_DSC_range"; 00660 } 00661 return nullptr; 00662 } 00663 00664 /// LNStandardString - Return the string for the specified line number standard. 00665 /// 00666 const char *llvm::dwarf::LNStandardString(unsigned Standard) { 00667 switch (Standard) { 00668 case DW_LNS_copy: return "DW_LNS_copy"; 00669 case DW_LNS_advance_pc: return "DW_LNS_advance_pc"; 00670 case DW_LNS_advance_line: return "DW_LNS_advance_line"; 00671 case DW_LNS_set_file: return "DW_LNS_set_file"; 00672 case DW_LNS_set_column: return "DW_LNS_set_column"; 00673 case DW_LNS_negate_stmt: return "DW_LNS_negate_stmt"; 00674 case DW_LNS_set_basic_block: return "DW_LNS_set_basic_block"; 00675 case DW_LNS_const_add_pc: return "DW_LNS_const_add_pc"; 00676 case DW_LNS_fixed_advance_pc: return "DW_LNS_fixed_advance_pc"; 00677 case DW_LNS_set_prologue_end: return "DW_LNS_set_prologue_end"; 00678 case DW_LNS_set_epilogue_begin: return "DW_LNS_set_epilogue_begin"; 00679 case DW_LNS_set_isa: return "DW_LNS_set_isa"; 00680 } 00681 return nullptr; 00682 } 00683 00684 /// LNExtendedString - Return the string for the specified line number extended 00685 /// opcode encodings. 00686 const char *llvm::dwarf::LNExtendedString(unsigned Encoding) { 00687 switch (Encoding) { 00688 // Line Number Extended Opcode Encodings 00689 case DW_LNE_end_sequence: return "DW_LNE_end_sequence"; 00690 case DW_LNE_set_address: return "DW_LNE_set_address"; 00691 case DW_LNE_define_file: return "DW_LNE_define_file"; 00692 case DW_LNE_set_discriminator: return "DW_LNE_set_discriminator"; 00693 case DW_LNE_lo_user: return "DW_LNE_lo_user"; 00694 case DW_LNE_hi_user: return "DW_LNE_hi_user"; 00695 } 00696 return nullptr; 00697 } 00698 00699 /// MacinfoString - Return the string for the specified macinfo type encodings. 00700 /// 00701 const char *llvm::dwarf::MacinfoString(unsigned Encoding) { 00702 switch (Encoding) { 00703 // Macinfo Type Encodings 00704 case DW_MACINFO_define: return "DW_MACINFO_define"; 00705 case DW_MACINFO_undef: return "DW_MACINFO_undef"; 00706 case DW_MACINFO_start_file: return "DW_MACINFO_start_file"; 00707 case DW_MACINFO_end_file: return "DW_MACINFO_end_file"; 00708 case DW_MACINFO_vendor_ext: return "DW_MACINFO_vendor_ext"; 00709 } 00710 return nullptr; 00711 } 00712 00713 /// CallFrameString - Return the string for the specified call frame instruction 00714 /// encodings. 00715 const char *llvm::dwarf::CallFrameString(unsigned Encoding) { 00716 switch (Encoding) { 00717 case DW_CFA_nop: return "DW_CFA_nop"; 00718 case DW_CFA_advance_loc: return "DW_CFA_advance_loc"; 00719 case DW_CFA_offset: return "DW_CFA_offset"; 00720 case DW_CFA_restore: return "DW_CFA_restore"; 00721 case DW_CFA_set_loc: return "DW_CFA_set_loc"; 00722 case DW_CFA_advance_loc1: return "DW_CFA_advance_loc1"; 00723 case DW_CFA_advance_loc2: return "DW_CFA_advance_loc2"; 00724 case DW_CFA_advance_loc4: return "DW_CFA_advance_loc4"; 00725 case DW_CFA_offset_extended: return "DW_CFA_offset_extended"; 00726 case DW_CFA_restore_extended: return "DW_CFA_restore_extended"; 00727 case DW_CFA_undefined: return "DW_CFA_undefined"; 00728 case DW_CFA_same_value: return "DW_CFA_same_value"; 00729 case DW_CFA_register: return "DW_CFA_register"; 00730 case DW_CFA_remember_state: return "DW_CFA_remember_state"; 00731 case DW_CFA_restore_state: return "DW_CFA_restore_state"; 00732 case DW_CFA_def_cfa: return "DW_CFA_def_cfa"; 00733 case DW_CFA_def_cfa_register: return "DW_CFA_def_cfa_register"; 00734 case DW_CFA_def_cfa_offset: return "DW_CFA_def_cfa_offset"; 00735 case DW_CFA_def_cfa_expression: return "DW_CFA_def_cfa_expression"; 00736 case DW_CFA_expression: return "DW_CFA_expression"; 00737 case DW_CFA_offset_extended_sf: return "DW_CFA_offset_extended_sf"; 00738 case DW_CFA_def_cfa_sf: return "DW_CFA_def_cfa_sf"; 00739 case DW_CFA_def_cfa_offset_sf: return "DW_CFA_def_cfa_offset_sf"; 00740 case DW_CFA_val_offset: return "DW_CFA_val_offset"; 00741 case DW_CFA_val_offset_sf: return "DW_CFA_val_offset_sf"; 00742 case DW_CFA_val_expression: return "DW_CFA_val_expression"; 00743 case DW_CFA_MIPS_advance_loc8: return "DW_CFA_MIPS_advance_loc8"; 00744 case DW_CFA_GNU_window_save: return "DW_CFA_GNU_window_save"; 00745 case DW_CFA_GNU_args_size: return "DW_CFA_GNU_args_size"; 00746 case DW_CFA_lo_user: return "DW_CFA_lo_user"; 00747 case DW_CFA_hi_user: return "DW_CFA_hi_user"; 00748 } 00749 return nullptr; 00750 } 00751 00752 const char *llvm::dwarf::AtomTypeString(unsigned AT) { 00753 switch (AT) { 00754 case dwarf::DW_ATOM_null: 00755 return "DW_ATOM_null"; 00756 case dwarf::DW_ATOM_die_offset: 00757 return "DW_ATOM_die_offset"; 00758 case DW_ATOM_cu_offset: 00759 return "DW_ATOM_cu_offset"; 00760 case DW_ATOM_die_tag: 00761 return "DW_ATOM_die_tag"; 00762 case DW_ATOM_type_flags: 00763 return "DW_ATOM_type_flags"; 00764 } 00765 return nullptr; 00766 } 00767 00768 const char *llvm::dwarf::GDBIndexEntryKindString(GDBIndexEntryKind Kind) { 00769 switch (Kind) { 00770 case GIEK_NONE: 00771 return "NONE"; 00772 case GIEK_TYPE: 00773 return "TYPE"; 00774 case GIEK_VARIABLE: 00775 return "VARIABLE"; 00776 case GIEK_FUNCTION: 00777 return "FUNCTION"; 00778 case GIEK_OTHER: 00779 return "OTHER"; 00780 case GIEK_UNUSED5: 00781 return "UNUSED5"; 00782 case GIEK_UNUSED6: 00783 return "UNUSED6"; 00784 case GIEK_UNUSED7: 00785 return "UNUSED7"; 00786 } 00787 llvm_unreachable("Unknown GDBIndexEntryKind value"); 00788 } 00789 00790 const char *llvm::dwarf::GDBIndexEntryLinkageString(GDBIndexEntryLinkage Linkage) { 00791 switch (Linkage) { 00792 case GIEL_EXTERNAL: 00793 return "EXTERNAL"; 00794 case GIEL_STATIC: 00795 return "STATIC"; 00796 } 00797 llvm_unreachable("Unknown GDBIndexEntryLinkage value"); 00798 } 00799 00800 const char *llvm::dwarf::AttributeValueString(uint16_t Attr, unsigned Val) { 00801 switch (Attr) { 00802 case DW_AT_accessibility: 00803 return AccessibilityString(Val); 00804 case DW_AT_virtuality: 00805 return VirtualityString(Val); 00806 case DW_AT_language: 00807 return LanguageString(Val); 00808 case DW_AT_encoding: 00809 return AttributeEncodingString(Val); 00810 case DW_AT_decimal_sign: 00811 return DecimalSignString(Val); 00812 case DW_AT_endianity: 00813 return EndianityString(Val); 00814 case DW_AT_visibility: 00815 return VisibilityString(Val); 00816 case DW_AT_identifier_case: 00817 return CaseString(Val); 00818 case DW_AT_calling_convention: 00819 return ConventionString(Val); 00820 case DW_AT_inline: 00821 return InlineCodeString(Val); 00822 case DW_AT_ordering: 00823 return ArrayOrderString(Val); 00824 case DW_AT_discr_value: 00825 return DiscriminantString(Val); 00826 } 00827 00828 return nullptr; 00829 }