[PATCH] D74124: [llvm-exegesis] Add a custom error for clustering

Miloš Stojanović via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 6 05:23:19 PST 2020


mstojanovic created this revision.
mstojanovic added reviewers: courbet, gchatelet, petarj.
Herald added subscribers: tschuett, mgorny.
Herald added a project: LLVM.

All errors of type `Failure` are `StringError`s. In order for exit code mapping to detect that specifically a clustering error has occurred it needs to have a different type.

This patch also prepares D74085 <https://reviews.llvm.org/D74085> where termination `report_fatal_error()` will be replaced with emitting `StringError`s.


https://reviews.llvm.org/D74124

Files:
  llvm/tools/llvm-exegesis/lib/CMakeLists.txt
  llvm/tools/llvm-exegesis/lib/Clustering.cpp
  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: D74124.242875.patch
Type: text/x-patch
Size: 4095 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200206/c5716ea7/attachment.bin>


More information about the llvm-commits mailing list