[PATCH] D66286: [llvm-readobj/llvm-readelf] - Improve/cleanup the error reporting API.
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 15 08:58:09 PDT 2019
jhenderson added inline comments.
================
Comment at: tools/llvm-readobj/ObjDumper.cpp:27
+static inline Error createError(const Twine &Err) {
+ return make_error<StringError>(Err, object::object_error::parse_failed);
+}
----------------
Can you use `createStringError` here?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66286/new/
https://reviews.llvm.org/D66286
More information about the llvm-commits
mailing list