[PATCH] D74215: [llvm-exegesis] Improve error reporting in BenchmarkRunner.cpp

Miloš Stojanović via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 7 04:43:01 PST 2020


mstojanovic created this revision.
mstojanovic added reviewers: courbet, gchatelet, petarj.
Herald added a subscriber: tschuett.
Herald added a project: LLVM.
mstojanovic added a parent revision: D74124: [llvm-exegesis] Add a custom error for clustering.

Followup to D74085 <https://reviews.llvm.org/D74085>.
Replace the use of `report_fatal_error()` with returning the error to `llvm-exegesis.cpp` and handling it there.
To facilitate this, a new `Error` type has been added which is only used to log errors to the yaml output.


https://reviews.llvm.org/D74215

Files:
  llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
  llvm/tools/llvm-exegesis/lib/BenchmarkRunner.h
  llvm/tools/llvm-exegesis/lib/Error.cpp
  llvm/tools/llvm-exegesis/lib/Error.h
  llvm/tools/llvm-exegesis/llvm-exegesis.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74215.243136.patch
Type: text/x-patch
Size: 4319 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200207/64967aad/attachment.bin>


More information about the llvm-commits mailing list