llvm/llvm/lib/ExecutionEngine/Orc/Shared/OrcError.cpp

//===---------------- OrcError.cpp - Error codes for ORC ------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Error codes for ORC.
//
//===----------------------------------------------------------------------===//

#include "llvm/ExecutionEngine/Orc/Shared/OrcError.h"
#include "llvm/Support/ErrorHandling.h"

#include <type_traits>

usingnamespacellvm;
usingnamespacellvm::orc;

namespace {

// FIXME: This class is only here to support the transition to llvm::Error. It
// will be removed once this transition is complete. Clients should prefer to
// deal with the Error value directly, rather than converting to error_code.
class OrcErrorCategory : public std::error_category {};

OrcErrorCategory &getOrcErrCat() {}
} // namespace

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 {}

} // namespace orc
} // namespace llvm