diff options
| author | 2020-08-03 15:06:44 +0000 | |
|---|---|---|
| committer | 2020-08-03 15:06:44 +0000 | |
| commit | b64793999546ed8adebaeebd9d8345d18db8927d (patch) | |
| tree | 4357c27b561d73b0e089727c6ed659f2ceff5f47 /gnu/llvm/tools/llvm-cxxdump/Error.cpp | |
| parent | Add support for UTF-8 DISPLAY-HINTs with octet length. For now only (diff) | |
| download | wireguard-openbsd-b64793999546ed8adebaeebd9d8345d18db8927d.tar.xz wireguard-openbsd-b64793999546ed8adebaeebd9d8345d18db8927d.zip | |
Remove LLVM 8.0.1 files.
Diffstat (limited to 'gnu/llvm/tools/llvm-cxxdump/Error.cpp')
| -rw-r--r-- | gnu/llvm/tools/llvm-cxxdump/Error.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/gnu/llvm/tools/llvm-cxxdump/Error.cpp b/gnu/llvm/tools/llvm-cxxdump/Error.cpp deleted file mode 100644 index 54207fad32a..00000000000 --- a/gnu/llvm/tools/llvm-cxxdump/Error.cpp +++ /dev/null @@ -1,46 +0,0 @@ -//===- Error.cpp - system_error extensions for llvm-cxxdump -----*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This defines a new error_category for the llvm-cxxdump tool. -// -//===----------------------------------------------------------------------===// - -#include "Error.h" -#include "llvm/Support/ErrorHandling.h" - -using namespace llvm; - -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 cxxdump_error_category : public std::error_category { -public: - const char *name() const noexcept override { return "llvm.cxxdump"; } - std::string message(int ev) const override { - switch (static_cast<cxxdump_error>(ev)) { - case cxxdump_error::success: - return "Success"; - case cxxdump_error::file_not_found: - return "No such file."; - case cxxdump_error::unrecognized_file_format: - return "Unrecognized file type."; - } - llvm_unreachable( - "An enumerator of cxxdump_error does not have a message defined."); - } -}; -} // namespace - -namespace llvm { -const std::error_category &cxxdump_category() { - static cxxdump_error_category o; - return o; -} -} // namespace llvm |
