[UpdateCCTestChecks] Detect function mangled name on separate line
[llvm-core.git] / tools / llvm-exegesis / lib / Error.h
blob720cc6829f3e3e6033fc4c6d77cad3e9a35ac29a
1 //===-- Error.h -------------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_TOOLS_LLVM_EXEGESIS_ERROR_H
10 #define LLVM_TOOLS_LLVM_EXEGESIS_ERROR_H
12 #include "llvm/ADT/Twine.h"
13 #include "llvm/Support/Error.h"
15 namespace llvm {
16 namespace exegesis {
18 // A class representing failures that happened within llvm-exegesis, they are
19 // used to report informations to the user.
20 class Failure : public StringError {
21 public:
22 Failure(const Twine &S) : StringError(S, inconvertibleErrorCode()) {}
25 } // namespace exegesis
26 } // namespace llvm
28 #endif