diff options
Diffstat (limited to 'include/llvm/ExecutionEngine/Orc/OrcError.h')
-rw-r--r-- | include/llvm/ExecutionEngine/Orc/OrcError.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/Orc/OrcError.h b/include/llvm/ExecutionEngine/Orc/OrcError.h new file mode 100644 index 0000000..48f35d6 --- /dev/null +++ b/include/llvm/ExecutionEngine/Orc/OrcError.h @@ -0,0 +1,37 @@ +//===------ OrcError.h - Reject symbol lookup requests ------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// Define an error category, error codes, and helper utilities for Orc. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_EXECUTIONENGINE_ORC_ORCERROR_H +#define LLVM_EXECUTIONENGINE_ORC_ORCERROR_H + +#include <system_error> + +namespace llvm { +namespace orc { + +enum class OrcErrorCode : int { + // RPC Errors + RemoteAllocatorDoesNotExist = 1, + RemoteAllocatorIdAlreadyInUse, + RemoteMProtectAddrUnrecognized, + RemoteIndirectStubsOwnerDoesNotExist, + RemoteIndirectStubsOwnerIdAlreadyInUse, + UnexpectedRPCCall +}; + +std::error_code orcError(OrcErrorCode ErrCode); + +} // End namespace orc. +} // End namespace llvm. + +#endif // LLVM_EXECUTIONENGINE_ORC_ORCERROR_H |