Change DT_* value definitions to macros in a separate file
authorAlexander Richardson <arichardson.kde@gmail.com>
Wed, 21 Mar 2018 14:17:50 +0000 (14:17 +0000)
committerAlexander Richardson <arichardson.kde@gmail.com>
Wed, 21 Mar 2018 14:17:50 +0000 (14:17 +0000)
commit3056a8424e62ca0d087805ae3e9b0d686bac116c
treefbc3ff12763dfb4c1f5fce9e4f856272724f7f86
parent85fa9ef62606a8d9f7b410089682e04bdc66d002
Change DT_* value definitions to macros in a separate file

Summary:
I recently added a new dynamic tag to our fork of LLVM and when adding it
to llvm-readobj I noticed that not all DT_ values were being handled there.

Using macros in a .def file that can be included by both ELFDumper.cpp and
the ELF.h header ensures that the two don't get out of sync when new values
are added.

Reviewers: grimar, pcc, davide, espindola

Reviewed By: grimar, espindola

Subscribers: srhines, llvm-commits

Differential Revision: https://reviews.llvm.org/D44558

llvm-svn: 328099
llvm/include/llvm/BinaryFormat/DynamicTags.def [new file with mode: 0644]
llvm/include/llvm/BinaryFormat/ELF.h
llvm/include/llvm/module.modulemap
llvm/tools/llvm-readobj/ELFDumper.cpp