From b64793999546ed8adebaeebd9d8345d18db8927d Mon Sep 17 00:00:00 2001 From: patrick Date: Mon, 3 Aug 2020 15:06:44 +0000 Subject: Remove LLVM 8.0.1 files. --- gnu/llvm/lib/DebugInfo/PDB/GenericError.cpp | 47 ----------------------------- 1 file changed, 47 deletions(-) delete mode 100644 gnu/llvm/lib/DebugInfo/PDB/GenericError.cpp (limited to 'gnu/llvm/lib/DebugInfo/PDB/GenericError.cpp') diff --git a/gnu/llvm/lib/DebugInfo/PDB/GenericError.cpp b/gnu/llvm/lib/DebugInfo/PDB/GenericError.cpp deleted file mode 100644 index 256952073e8..00000000000 --- a/gnu/llvm/lib/DebugInfo/PDB/GenericError.cpp +++ /dev/null @@ -1,47 +0,0 @@ -//===- Error.cpp - system_error extensions for PDB --------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include "llvm/DebugInfo/PDB/GenericError.h" -#include "llvm/Support/ErrorHandling.h" -#include "llvm/Support/ManagedStatic.h" - -using namespace llvm; -using namespace llvm::pdb; - -// 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 PDBErrorCategory : public std::error_category { -public: - const char *name() const noexcept override { return "llvm.pdb"; } - std::string message(int Condition) const override { - switch (static_cast(Condition)) { - case pdb_error_code::unspecified: - return "An unknown error has occurred."; - case pdb_error_code::dia_sdk_not_present: - return "LLVM was not compiled with support for DIA. This usually means " - "that you are not using MSVC, or your Visual Studio " - "installation is corrupt."; - case pdb_error_code::dia_failed_loading: - return "DIA is only supported when using MSVC."; - case pdb_error_code::invalid_utf8_path: - return "The PDB file path is an invalid UTF8 sequence."; - case pdb_error_code::signature_out_of_date: - return "The signature does not match; the file(s) might be out of date."; - case pdb_error_code::external_cmdline_ref: - return "The path to this file must be provided on the command-line."; - } - llvm_unreachable("Unrecognized generic_error_code"); - } -}; - -static llvm::ManagedStatic PDBCategory; -const std::error_category &llvm::pdb::PDBErrCategory() { return *PDBCategory; } - -char PDBError::ID; -- cgit v1.2.3-59-g8ed1b