llvm/llvm/lib/Object/Error.cpp

//===- Error.cpp - system_error extensions for Object -----------*- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
// This defines a new error_category for the Object library.
//
//===----------------------------------------------------------------------===//

#include "llvm/Object/Error.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/ErrorHandling.h"

usingnamespacellvm;
usingnamespaceobject;

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 _object_error_category : public std::error_category {};
}

const char *_object_error_category::name() const noexcept {}

std::string _object_error_category::message(int EV) const {}

void BinaryError::anchor() {}
char BinaryError::ID =;
char GenericBinaryError::ID =;

GenericBinaryError::GenericBinaryError(const Twine &Msg) :{}

GenericBinaryError::GenericBinaryError(const Twine &Msg,
                                       object_error ECOverride)
    :{}

void GenericBinaryError::log(raw_ostream &OS) const {}

const std::error_category &object::object_category() {}

llvm::Error llvm::object::isNotObjectErrorInvalidFileType(llvm::Error Err) {}