diff options
author | Georgii Rymar <grimar@accesssoftek.com> | 2020-09-15 16:17:08 +0300 |
---|---|---|
committer | Georgii Rymar <grimar@accesssoftek.com> | 2020-09-21 13:05:46 +0300 |
commit | 095f6fbbd7b61af205d761f6951a869ec4a61722 (patch) | |
tree | b3127f2d016baf3e158beeb0c82e62bbecf656b7 /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | 13c73632c7cfcc2c8e70c93781d8fb9872153ede (diff) | |
download | llvm-095f6fbbd7b61af205d761f6951a869ec4a61722.zip llvm-095f6fbbd7b61af205d761f6951a869ec4a61722.tar.gz llvm-095f6fbbd7b61af205d761f6951a869ec4a61722.tar.bz2 |
[llvm-readelf/obj] - Stop printing invalid names for unnamed section symbols.
We have an issue with `ELFDumper<ELFT>::getSymbolSectionName`:
1) It is used deeply for both LLVM/GNU styles and might return LLVM-style only
values to describe symbols: "Undefined", "Processor Specific", "Absolute", etc.
2) `getSymbolSectionName` is used by `getFullSymbolName` and these special values
might appear instead of symbol names in many places.
This occurs for unnamed section symbols currently.
This patch extracts the LLVM specific logic to `LLVMStyle<ELFT>::printSymbolSection`,
which seems to be the only place where we want to print the special values mentioned.
It also adds a meaningful new warning that is reported when we are unable to get
a section index for a section symbol.
Differential revision: https://reviews.llvm.org/D87764
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions