LLVM  4.0.0
OrcError.h
Go to the documentation of this file.
1 //===------ OrcError.h - Reject symbol lookup requests ------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // Define an error category, error codes, and helper utilities for Orc.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_EXECUTIONENGINE_ORC_ORCERROR_H
15 #define LLVM_EXECUTIONENGINE_ORC_ORCERROR_H
16 
17 #include "llvm/Support/Error.h"
18 #include <system_error>
19 
20 namespace llvm {
21 namespace orc {
22 
23 enum class OrcErrorCode : int {
24  // RPC Errors
34 };
35 
36 Error orcError(OrcErrorCode ErrCode);
37 
38 } // End namespace orc.
39 } // End namespace llvm.
40 
41 #endif // LLVM_EXECUTIONENGINE_ORC_ORCERROR_H
OrcErrorCode
Definition: OrcError.h:23
Lightweight error class with error context and mandatory checking.
Error orcError(OrcErrorCode ErrCode)
Definition: OrcError.cpp:61