diff options
Diffstat (limited to 'llvm/tools/llvm-exegesis/llvm-exegesis.cpp')
-rw-r--r-- | llvm/tools/llvm-exegesis/llvm-exegesis.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp index 501f6217fd0..616b7c96232 100644 --- a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp +++ b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp @@ -15,6 +15,7 @@ #include "lib/BenchmarkResult.h" #include "lib/BenchmarkRunner.h" #include "lib/Clustering.h" +#include "lib/Error.h" #include "lib/LlvmState.h" #include "lib/PerfHelper.h" #include "lib/SnippetFile.h" @@ -207,13 +208,11 @@ generateSnippets(const LLVMState &State, unsigned Opcode, const llvm::MCInstrDesc &InstrDesc = *Instr.Description; // Ignore instructions that we cannot run. if (InstrDesc.isPseudo()) - return llvm::make_error<BenchmarkFailure>("Unsupported opcode: isPseudo"); + return make_error<Failure>("Unsupported opcode: isPseudo"); if (InstrDesc.isBranch() || InstrDesc.isIndirectBranch()) - return llvm::make_error<BenchmarkFailure>( - "Unsupported opcode: isBranch/isIndirectBranch"); + return make_error<Failure>("Unsupported opcode: isBranch/isIndirectBranch"); if (InstrDesc.isCall() || InstrDesc.isReturn()) - return llvm::make_error<BenchmarkFailure>( - "Unsupported opcode: isCall/isReturn"); + return make_error<Failure>("Unsupported opcode: isCall/isReturn"); const std::unique_ptr<SnippetGenerator> Generator = State.getExegesisTarget().createSnippetGenerator(BenchmarkMode, State); |