[PATCH] D84408: [llvm-readobj] - Don't stop dumping when the name of a relocation section can't be read.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 3 03:47:11 PDT 2020
grimar added inline comments.
================
Comment at: llvm/tools/llvm-readobj/ELFDumper.cpp:6135-6141
+ StringRef Name = "<?>";
+ if (Expected<StringRef> NameOrErr = Obj->getSectionName(&Sec))
+ Name = *NameOrErr;
+ else
+ this->reportUniqueWarning(createError("unable to get the name of " +
+ describe(Obj, Sec) + ": " +
+ toString(NameOrErr.takeError())));
----------------
jhenderson wrote:
> This code looks like something that could be shared both with the GNU style and possibly even more widely with other places getting section names.
Done.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84408/new/
https://reviews.llvm.org/D84408
More information about the llvm-commits
mailing list