diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-10-04 20:27:56 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2017-10-04 20:27:56 +0000 |
commit | 43833702910169546dd8441abe1987a73841bdca (patch) | |
tree | 4744dc4f25480ad98efb9d37a1ed6b97eb7fd1c8 /gnu | |
parent | 69da2e35267c9365c412c827d749174d2da76bfc (diff) |
Import LLVM 5.0.0 release including clang, lld and lldb.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/llvm/include/llvm/BinaryFormat/Dwarf.def | 91 |
1 files changed, 9 insertions, 82 deletions
diff --git a/gnu/llvm/include/llvm/BinaryFormat/Dwarf.def b/gnu/llvm/include/llvm/BinaryFormat/Dwarf.def index 944c5dd1c15..3df3300de46 100644 --- a/gnu/llvm/include/llvm/BinaryFormat/Dwarf.def +++ b/gnu/llvm/include/llvm/BinaryFormat/Dwarf.def @@ -12,15 +12,15 @@ //===----------------------------------------------------------------------===// // TODO: Add other DW-based macros. -#if !( \ - defined HANDLE_DW_TAG || defined HANDLE_DW_AT || defined HANDLE_DW_FORM || \ - defined HANDLE_DW_OP || defined HANDLE_DW_LANG || defined HANDLE_DW_ATE || \ - defined HANDLE_DW_VIRTUALITY || defined HANDLE_DW_DEFAULTED || \ - defined HANDLE_DW_CC || defined HANDLE_DW_LNS || defined HANDLE_DW_LNE || \ - defined HANDLE_DW_LNCT || defined HANDLE_DW_MACRO || \ - defined HANDLE_DW_RLE || defined HANDLE_DW_CFA || \ - defined HANDLE_DW_APPLE_PROPERTY || defined HANDLE_DW_UT || \ - defined HANDLE_DWARF_SECTION || defined HANDLE_DW_IDX) +#if !(defined HANDLE_DW_TAG || defined HANDLE_DW_AT || \ + defined HANDLE_DW_FORM || defined HANDLE_DW_OP || \ + defined HANDLE_DW_LANG || defined HANDLE_DW_ATE || \ + defined HANDLE_DW_VIRTUALITY || defined HANDLE_DW_DEFAULTED || \ + defined HANDLE_DW_CC || defined HANDLE_DW_LNS || \ + defined HANDLE_DW_LNE || defined HANDLE_DW_LNCT || \ + defined HANDLE_DW_MACRO || defined HANDLE_DW_RLE || \ + defined HANDLE_DW_CFA || defined HANDLE_DW_APPLE_PROPERTY || \ + defined HANDLE_DW_UT) #error "Missing macro definition of HANDLE_DW*" #endif @@ -92,14 +92,6 @@ #define HANDLE_DW_UT(ID, NAME) #endif -#ifndef HANDLE_DWARF_SECTION -#define HANDLE_DWARF_SECTION(ENUM_NAME, ELF_NAME, CMDLINE_NAME) -#endif - -#ifndef HANDLE_DW_IDX -#define HANDLE_DW_IDX(ID, NAME) -#endif - HANDLE_DW_TAG(0x0000, null, 2, DWARF) HANDLE_DW_TAG(0x0001, array_type, 2, DWARF) HANDLE_DW_TAG(0x0002, class_type, 2, DWARF) @@ -180,8 +172,6 @@ HANDLE_DW_TAG(0x4103, class_template, 0, GNU) HANDLE_DW_TAG(0x4106, GNU_template_template_param, 0, GNU) HANDLE_DW_TAG(0x4107, GNU_template_parameter_pack, 0, GNU) HANDLE_DW_TAG(0x4108, GNU_formal_parameter_pack, 0, GNU) -HANDLE_DW_TAG(0x4109, GNU_call_site, 0, GNU) -HANDLE_DW_TAG(0x410a, GNU_call_site_parameter, 0, GNU) HANDLE_DW_TAG(0x4200, APPLE_property, 0, APPLE) HANDLE_DW_TAG(0xb000, BORLAND_property, 0, BORLAND) HANDLE_DW_TAG(0xb001, BORLAND_Delphi_string, 0, BORLAND) @@ -344,8 +334,6 @@ HANDLE_DW_AT(0x2106, body_end, 0, GNU) HANDLE_DW_AT(0x2107, GNU_vector, 0, GNU) HANDLE_DW_AT(0x2110, GNU_template_name, 0, GNU) HANDLE_DW_AT(0x210f, GNU_odr_signature, 0, GNU) -HANDLE_DW_AT(0x2111, GNU_call_site_value, 0, GNU) -HANDLE_DW_AT(0x2117, GNU_all_call_sites, 0, GNU) HANDLE_DW_AT(0x2119, GNU_macros, 0, GNU) // Extensions for Fission proposal. HANDLE_DW_AT(0x2130, GNU_dwo_name, 0, GNU) @@ -708,7 +696,6 @@ HANDLE_DW_CC(0x03, nocall) HANDLE_DW_CC(0x04, pass_by_reference) HANDLE_DW_CC(0x05, pass_by_value) // Vendor extensions: -HANDLE_DW_CC(0x40, GNU_renesas_sh) HANDLE_DW_CC(0x41, GNU_borland_fastcall_i386) HANDLE_DW_CC(0xb0, BORLAND_safecall) HANDLE_DW_CC(0xb1, BORLAND_stdcall) @@ -718,22 +705,6 @@ HANDLE_DW_CC(0xb4, BORLAND_msreturn) HANDLE_DW_CC(0xb5, BORLAND_thiscall) HANDLE_DW_CC(0xb6, BORLAND_fastcall) HANDLE_DW_CC(0xc0, LLVM_vectorcall) -HANDLE_DW_CC(0xc1, LLVM_Win64) -HANDLE_DW_CC(0xc2, LLVM_X86_64SysV) -HANDLE_DW_CC(0xc3, LLVM_AAPCS) -HANDLE_DW_CC(0xc4, LLVM_AAPCS_VFP) -HANDLE_DW_CC(0xc5, LLVM_IntelOclBicc) -HANDLE_DW_CC(0xc6, LLVM_SpirFunction) -HANDLE_DW_CC(0xc7, LLVM_OpenCLKernel) -HANDLE_DW_CC(0xc8, LLVM_Swift) -HANDLE_DW_CC(0xc9, LLVM_PreserveMost) -HANDLE_DW_CC(0xca, LLVM_PreserveAll) -HANDLE_DW_CC(0xcb, LLVM_X86RegCall) -// From GCC source code (include/dwarf2.h): This DW_CC_ value is not currently -// generated by any toolchain. It is used internally to GDB to indicate OpenCL C -// functions that have been compiled with the IBM XL C for OpenCL compiler and use -// a non-platform calling convention for passing OpenCL C vector types. -HANDLE_DW_CC(0xff, GDB_IBM_OpenCL) // Line Number Extended Opcode Encodings HANDLE_DW_LNE(0x01, end_sequence) @@ -764,9 +735,6 @@ HANDLE_DW_LNCT(0x02, directory_index) HANDLE_DW_LNCT(0x03, timestamp) HANDLE_DW_LNCT(0x04, size) HANDLE_DW_LNCT(0x05, MD5) -// A vendor extension until http://dwarfstd.org/ShowIssue.php?issue=180201.1 is -// accepted and incorporated into the next DWARF standard. -HANDLE_DW_LNCT(0x2001, LLVM_source) // DWARF v5 Macro information. HANDLE_DW_MACRO(0x01, define) @@ -851,45 +819,6 @@ HANDLE_DW_UT(0x04, skeleton) HANDLE_DW_UT(0x05, split_compile) HANDLE_DW_UT(0x06, split_type) -// DWARF section types. (enum name, ELF name, ELF DWO name, cmdline name) -// Note that these IDs don't mean anything. -// TODO: Add Mach-O and COFF names. -// Official DWARF sections. -HANDLE_DWARF_SECTION(DebugAbbrev, ".debug_abbrev", "debug-abbrev") -HANDLE_DWARF_SECTION(DebugAddr, ".debug_addr", "debug-addr") -HANDLE_DWARF_SECTION(DebugAranges, ".debug_aranges", "debug-aranges") -HANDLE_DWARF_SECTION(DebugInfo, ".debug_info", "debug-info") -HANDLE_DWARF_SECTION(DebugTypes, ".debug_types", "debug-types") -HANDLE_DWARF_SECTION(DebugLine, ".debug_line", "debug-line") -HANDLE_DWARF_SECTION(DebugLineStr, ".debug_line_str", "debug-line-str") -HANDLE_DWARF_SECTION(DebugLoc, ".debug_loc", "debug-loc") -HANDLE_DWARF_SECTION(DebugFrame, ".debug_frame", "debug-frame") -HANDLE_DWARF_SECTION(DebugMacro, ".debug_macro", "debug-macro") -HANDLE_DWARF_SECTION(DebugNames, ".debug_names", "debug-names") -HANDLE_DWARF_SECTION(DebugPubnames, ".debug_pubnames", "debug-pubnames") -HANDLE_DWARF_SECTION(DebugPubtypes, ".debug_pubtypes", "debug-pubtypes") -HANDLE_DWARF_SECTION(DebugGnuPubnames, ".debug_gnu_pubnames", "debug-gnu-pubnames") -HANDLE_DWARF_SECTION(DebugGnuPubtypes, ".debug_gnu_pubtypes", "debug-gnu-pubtypes") -HANDLE_DWARF_SECTION(DebugRanges, ".debug_ranges", "debug-ranges") -HANDLE_DWARF_SECTION(DebugRnglists, ".debug_rnglists", "debug-rnglists") -HANDLE_DWARF_SECTION(DebugStr, ".debug_str", "debug-str") -HANDLE_DWARF_SECTION(DebugStrOffsets, ".debug_str_offsets", "debug-str-offsets") -HANDLE_DWARF_SECTION(DebugCUIndex, ".debug_cu_index", "debug-cu-index") -HANDLE_DWARF_SECTION(DebugTUIndex, ".debug_tu_index", "debug-tu-index") -// Vendor extensions. -HANDLE_DWARF_SECTION(AppleNames, ".apple_names", "apple-names") -HANDLE_DWARF_SECTION(AppleTypes, ".apple_types", "apple-types") -HANDLE_DWARF_SECTION(AppleNamespaces, ".apple_namespaces", "apple-namespaces") -HANDLE_DWARF_SECTION(AppleObjC, ".apple_objc", "apple-objc") -HANDLE_DWARF_SECTION(GdbIndex, ".gdb_index", "gdb-index") - -HANDLE_DW_IDX(0x01, compile_unit) -HANDLE_DW_IDX(0x02, type_unit) -HANDLE_DW_IDX(0x03, die_offset) -HANDLE_DW_IDX(0x04, parent) -HANDLE_DW_IDX(0x05, type_hash) - - #undef HANDLE_DW_TAG #undef HANDLE_DW_AT #undef HANDLE_DW_FORM @@ -907,5 +836,3 @@ HANDLE_DW_IDX(0x05, type_hash) #undef HANDLE_DW_CFA #undef HANDLE_DW_APPLE_PROPERTY #undef HANDLE_DW_UT -#undef HANDLE_DWARF_SECTION -#undef HANDLE_DW_IDX |