Home | History | Annotate | Line # | Download | only in lib
      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 //===----------------------------------------------------------------------===//
      8 
      9 #include "Error.h"
     10 
     11 namespace llvm {
     12 namespace exegesis {
     13 
     14 char ClusteringError::ID;
     15 
     16 void ClusteringError::log(raw_ostream &OS) const { OS << Msg; }
     17 
     18 std::error_code ClusteringError::convertToErrorCode() const {
     19   return inconvertibleErrorCode();
     20 }
     21 
     22 char SnippetCrash::ID;
     23 
     24 void SnippetCrash::log(raw_ostream &OS) const { OS << Msg; }
     25 
     26 std::error_code SnippetCrash::convertToErrorCode() const {
     27   return inconvertibleErrorCode();
     28 }
     29 
     30 } // namespace exegesis
     31 } // namespace llvm
     32