Error.cpp 848 B

12345678910111213141516171819202122232425262728293031
  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. #include "Error.h"
  9. namespace llvm {
  10. namespace exegesis {
  11. char ClusteringError::ID;
  12. void ClusteringError::log(raw_ostream &OS) const { OS << Msg; }
  13. std::error_code ClusteringError::convertToErrorCode() const {
  14. return inconvertibleErrorCode();
  15. }
  16. char SnippetCrash::ID;
  17. void SnippetCrash::log(raw_ostream &OS) const { OS << Msg; }
  18. std::error_code SnippetCrash::convertToErrorCode() const {
  19. return inconvertibleErrorCode();
  20. }
  21. } // namespace exegesis
  22. } // namespace llvm