1 //===------ OrcError.h - Reject symbol lookup requests ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Define an error category, error codes, and helper utilities for Orc.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_EXECUTIONENGINE_ORC_ORCERROR_H
15 #define LLVM_EXECUTIONENGINE_ORC_ORCERROR_H
17 #include <system_error>
22 enum class OrcErrorCode : int {
24 RemoteAllocatorDoesNotExist = 1,
25 RemoteAllocatorIdAlreadyInUse,
26 RemoteMProtectAddrUnrecognized,
27 RemoteIndirectStubsOwnerDoesNotExist,
28 RemoteIndirectStubsOwnerIdAlreadyInUse,
32 std::error_code orcError(OrcErrorCode ErrCode);
34 } // End namespace orc.
35 } // End namespace llvm.
37 #endif // LLVM_EXECUTIONENGINE_ORC_ORCERROR_H