Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:59

0001 //===-- UnimplementedError.h ------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_UTILITY_UNIMPLEMENTEDERROR_H
0010 #define LLDB_UTILITY_UNIMPLEMENTEDERROR_H
0011 
0012 #include "llvm/Support/Errc.h"
0013 #include "llvm/Support/Error.h"
0014 
0015 namespace lldb_private {
0016 class UnimplementedError : public llvm::ErrorInfo<UnimplementedError> {
0017 public:
0018   static char ID;
0019 
0020   void log(llvm::raw_ostream &OS) const override { OS << "Not implemented"; }
0021 
0022   std::error_code convertToErrorCode() const override {
0023     return llvm::errc::not_supported;
0024   };
0025 };
0026 } // namespace lldb_private
0027 
0028 #endif // LLDB_UTILITY_UNIMPLEMENTEDERROR_H