[PATCH] D44558: Change DT_* value definitions to macros in a separate file

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 16 05:49:55 PDT 2018


arichardson created this revision.
arichardson added reviewers: grimar, pcc, davide.
Herald added subscribers: llvm-commits, srhines.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D44558

Files:
  include/llvm/BinaryFormat/DynamicTags.def
  include/llvm/BinaryFormat/ELF.h
  include/llvm/module.modulemap
  tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44558.138684.patch
Type: text/x-patch
Size: 26300 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180316/9bc32a66/attachment.bin>


More information about the llvm-commits mailing list