aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorGeorgii Rymar <grimar@accesssoftek.com>2020-09-11 16:26:59 +0300
committerGeorgii Rymar <grimar@accesssoftek.com>2020-09-23 13:25:39 +0300
commitd4035af2537432da41b2728829f8cd2fca9a9de8 (patch)
treeda5ecdc16c702c69806e60cb8490e0c16e428cd3 /clang/lib/CodeGen/CodeGenModule.cpp
parentca907bfb57d8ad3ec3bcc2cff2abab7b1b933af6 (diff)
downloadllvm-d4035af2537432da41b2728829f8cd2fca9a9de8.zip
llvm-d4035af2537432da41b2728829f8cd2fca9a9de8.tar.gz
llvm-d4035af2537432da41b2728829f8cd2fca9a9de8.tar.bz2
[llvm-readelf/obj] - Print section symbol names properly when dumping relocations.
Currently `--relocations` ignores section symbol names and always prints section names for them. This is inconsistent with GNU readelf and with `--symbols`. We have a code in `getFullSymbolName` (which is used for `--symbols`) which can be reused for `getRelocationTarget` (used for `--relocations`). With that the issue described is fixed and code becomes a bit shorter. Also with this change we start to print more relocations (in situations when we just showed warnings instead before) and also start to report more diagnostic warnings (see reloc-zero-name-or-value.test). Differential revision: https://reviews.llvm.org/D87613
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions