diff options
author | Fangrui Song <i@maskray.me> | 2023-06-24 10:06:17 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2023-06-24 10:06:17 -0700 |
commit | e28b3ea52aa68114ad9862ba2609042556d713ae (patch) | |
tree | 24ab9da8da5738da096428430afaf66b42b70468 /llvm/tools/llvm-tapi-diff/DiffEngine.cpp | |
parent | f042890521f314cfd0bb0a3b8399d2c7d1bd526b (diff) | |
download | llvm-e28b3ea52aa68114ad9862ba2609042556d713ae.zip llvm-e28b3ea52aa68114ad9862ba2609042556d713ae.tar.gz llvm-e28b3ea52aa68114ad9862ba2609042556d713ae.tar.bz2 |
[DWARF] Adjust warning condition for .dwo sections with relocations
D106624 added a .dwo warning (when there are relocations) that may fire for
non-debug sections, e.g. `.rodata.dwo` when there is a data symbol foo in
-fdata-sections mode. Adjust it to only warn for .debug sections.
While here, change the diagnostic to be more conventional
https://llvm.org/docs/CodingStandards.html#error-and-warning-messages and use
the relocated section name instead of the relocation section name.
This change does not handle `.zdebug` (support was mostly removed from LLVM) or
`__debug` (Mach-O, no DWO support).
Reviewed By: ayermolo, HaohaiWen
Differential Revision: https://reviews.llvm.org/D153602
Diffstat (limited to 'llvm/tools/llvm-tapi-diff/DiffEngine.cpp')
0 files changed, 0 insertions, 0 deletions