summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
index a08983817ad..4b541f4d829 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp
@@ -11,6 +11,7 @@
#include "Assembler.h"
#include "BenchmarkRunner.h"
+#include "Error.h"
#include "MCInstrDescView.h"
#include "PerfHelper.h"
#include "llvm/ADT/StringExtras.h"
@@ -24,9 +25,6 @@
namespace llvm {
namespace exegesis {
-BenchmarkFailure::BenchmarkFailure(const llvm::Twine &S)
- : llvm::StringError(S, llvm::inconvertibleErrorCode()) {}
-
BenchmarkRunner::BenchmarkRunner(const LLVMState &State,
InstructionBenchmark::ModeE Mode)
: State(State), Mode(Mode), Scratch(std::make_unique<ScratchSpace>()) {}
@@ -71,8 +69,7 @@ private:
llvm::CrashRecoveryContext::Disable();
// FIXME: Better diagnosis.
if (Crashed)
- return llvm::make_error<BenchmarkFailure>(
- "snippet crashed while running");
+ return make_error<Failure>("snippet crashed while running");
}
CounterValue += Counter.read();
}
OpenPOWER on IntegriCloud