[PATCH] D155353: [llvm-readobj] Print <null> for relocation target with an empty name
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 01:05:21 PDT 2023
jhenderson added inline comments.
================
Comment at: llvm/tools/llvm-readobj/ELFDumper.cpp:6953-6954
StringRef SymbolName = RelSym.Name;
+ if (RelSym.Sym && RelSym.Name.empty())
+ SymbolName = "<null>";
SmallString<32> RelocName;
----------------
If I'm not mistaken, we don't actually have a dedicated test case for this bit of the logic? (It's covered by other tests, but more by accident than design, I feel - there's no purpose-written llvm-readobj LLVM style test).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155353/new/
https://reviews.llvm.org/D155353
More information about the llvm-commits
mailing list