[PATCH] D86451: [llvm-readelf/obj] - Change the return type of the `createDRI(...)` to `Expected<>`

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 24 06:00:39 PDT 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: rupprecht, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
grimar requested review of this revision.

This allows to get rid of "Invalid data was encountered while parsing the file"
error reported in cases when sh_size/sh_offset of sections are broken.


https://reviews.llvm.org/D86451

Files:
  llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test
  llvm/test/tools/llvm-readobj/ELF/malformed-pt-dynamic.test
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86451.287361.patch
Type: text/x-patch
Size: 12996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200824/866baa22/attachment.bin>


More information about the llvm-commits mailing list