1 /* Names of various DWARF tags.
2 Copyright (C) 2012-2020 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 In addition to the permissions in the GNU General Public License, the
12 Free Software Foundation gives you unlimited permission to link the
13 compiled version of this file into combinations with other programs,
14 and to distribute those combinations without any restriction coming
15 from the use of this file. (The General Public License restrictions
16 do apply in other respects; for example, they cover modification of
17 the file, and distribution when not linked into a combined
20 GNU CC is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
25 You should have received a copy of the GNU General Public License
26 along with GNU CC; see the file COPYING. If not, write to
27 the Free Software Foundation, 51 Franklin Street - Fifth Floor,
28 Boston, MA 02110-1301, USA. */
32 #define DW_FIRST_TAG(name, value) \
33 const char *get_DW_TAG_name (unsigned int tag) \
36 #define DW_END_TAG } return 0; }
37 #define DW_FIRST_FORM(name, value) \
38 const char *get_DW_FORM_name (unsigned int form) \
41 #define DW_END_FORM } return 0; }
42 #define DW_FIRST_AT(name, value) \
43 const char *get_DW_AT_name (unsigned int attr) { \
46 #define DW_END_AT } return 0; }
47 #define DW_FIRST_OP(name, value) \
48 const char *get_DW_OP_name (unsigned int op) { \
51 #define DW_END_OP } return 0; }
52 #define DW_FIRST_ATE(name, value) \
53 const char *get_DW_ATE_name (unsigned int enc) { \
56 #define DW_END_ATE } return 0; }
57 #define DW_FIRST_CFA(name, value) \
58 const char *get_DW_CFA_name (unsigned int opc) { \
61 #define DW_END_CFA } return 0; }
62 #define DW_FIRST_IDX(name, value) \
63 const char *get_DW_IDX_name (unsigned int idx) { \
66 #define DW_END_IDX } return 0; }
67 #define DW_FIRST_UT(name, value) \
68 const char *get_DW_UT_name (unsigned int ut) { \
71 #define DW_END_UT } return 0; }
73 #define DW_TAG(name, value) case name: return # name ;
74 #define DW_TAG_DUP(name, value)
75 #define DW_FORM(name, value) case name: return # name ;
76 #define DW_AT(name, value) case name: return # name ;
77 #define DW_AT_DUP(name, value)
78 #define DW_OP(name, value) case name: return # name ;
79 #define DW_OP_DUP(name, value)
80 #define DW_ATE(name, value) case name: return # name ;
81 #define DW_ATE_DUP(name, value)
82 #define DW_CFA(name, value) case name: return # name ;
83 #define DW_CFA_DUP(name, value)
84 #define DW_IDX(name, value) case name: return # name ;
85 #define DW_IDX_DUP(name, value)
86 #define DW_UT(name, value) case name: return # name ;