#include "llvm/ExecutionEngine/Orc/Shared/OrcError.h"
#include "llvm/Support/ErrorHandling.h"
#include <type_traits>
usingnamespacellvm;
usingnamespacellvm::orc;
namespace {
class OrcErrorCategory : public std::error_category { … };
OrcErrorCategory &getOrcErrCat() { … }
}
namespace llvm {
namespace orc {
char DuplicateDefinition::ID = …;
char JITSymbolNotFound::ID = …;
std::error_code orcError(OrcErrorCode ErrCode) { … }
DuplicateDefinition::DuplicateDefinition(std::string SymbolName)
: … { … }
std::error_code DuplicateDefinition::convertToErrorCode() const { … }
void DuplicateDefinition::log(raw_ostream &OS) const { … }
const std::string &DuplicateDefinition::getSymbolName() const { … }
JITSymbolNotFound::JITSymbolNotFound(std::string SymbolName)
: … { … }
std::error_code JITSymbolNotFound::convertToErrorCode() const { … }
void JITSymbolNotFound::log(raw_ostream &OS) const { … }
const std::string &JITSymbolNotFound::getSymbolName() const { … }
}
}