Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / tools / llvm-exegesis / lib / Error.cpp
blob51ce41bf00bf5c738b73d984163452232ce25a0c
1 //===-- Error.cpp -----------------------------------------------*- 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 #include "Error.h"
11 namespace llvm {
12 namespace exegesis {
14 char ClusteringError::ID;
16 void ClusteringError::log(raw_ostream &OS) const { OS << Msg; }
18 std::error_code ClusteringError::convertToErrorCode() const {
19 return inconvertibleErrorCode();
22 char SnippetCrash::ID;
24 void SnippetCrash::log(raw_ostream &OS) const { OS << Msg; }
26 std::error_code SnippetCrash::convertToErrorCode() const {
27 return inconvertibleErrorCode();
30 } // namespace exegesis
31 } // namespace llvm