Recommit: "[llvm-exegesis] Improve error reporting in Target.cpp"
authorMiloš Stojanović <Milos.Stojanovic@rt-rk.com>
Thu, 6 Feb 2020 17:21:01 +0000 (18:21 +0100)
committerMiloš Stojanović <Milos.Stojanovic@rt-rk.com>
Fri, 7 Feb 2020 13:34:58 +0000 (14:34 +0100)
commit4bd40f71a72c3d9b7137bd9eb8767b6c140ae92e
tree0c32e98070a1e8892144e3917bd86e04b0f70a80
parent830af528a550d5fa90c6106a26e8365fa077aca0
Recommit: "[llvm-exegesis] Improve error reporting in Target.cpp"

Summary: Commit 141915963b6ab36ee4e577d1b27673fa4d05b409 was reverted in
abe01e17f648a97666d4fbed41f0861686a17972 because it broke builds testing
without libpfm. A preparatory commit <commit_sha1> was added to enable
this recommit.

Original commit message:

Followup to D74085.
Replace the use of `report_fatal_error()` with returning the error to
`llvm-exegesis.cpp` and handling it there.

Differential Revision: https://reviews.llvm.org/D74113
llvm/tools/llvm-exegesis/lib/Target.cpp
llvm/tools/llvm-exegesis/lib/Target.h
llvm/tools/llvm-exegesis/llvm-exegesis.cpp