]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libiberty: move DW_LANG_* definitions to dwarf2.def
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 18 Feb 2025 19:31:26 +0000 (14:31 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 10 Mar 2025 20:09:02 +0000 (16:09 -0400)
commit32a187da7622e8fdbdd275fb99c78e1927f8f602
tree1310607be0af6428e1d903bea6f9e66938cb5d33
parentb3fa38aef59d97a8ce57395b1f3902f6361d9bd4
libiberty: move DW_LANG_* definitions to dwarf2.def

In order to get a "DW_LANG_* to string" function:

  - move the "DW_LANG_*" definitions from dwarf2.h to dwarf2.def
  - add the necessary macros in dwarf2.h to generate the enumeration
  - add the necessary macros in dwarfnames.c to generate the "to string"
    function

include/ChangeLog:

* dwarf2.h (DW_LANG, DW_FIRST_LANG, DW_END_LANG): Define then
undefine.
(enum dwarf_source_language): Remove.
(get_DW_LANG_name): Declare.
* dwarf2.def: Define DW_LANG_* constants.

libiberty/ChangeLog:

* dwarfnames.c (DW_FIRST_LANG, DW_END_LANG, DW_LANG): Define
then undefine.

Change-Id: I440aa2b1f55c7585d7e44c8fa7c41310b0ef2b3a
Cc: binutils@sourceware.org
include/dwarf2.def
include/dwarf2.h
libiberty/dwarfnames.c