[ARM] Prevent generating NEON stack accesses under MVE.
[llvm-complete.git] / tools / llvm-cxxdump / Error.h
blob439902fa3803fcfc2c9f919c00dd84d57966ce3f
1 //===- Error.h - system_error extensions for llvm-cxxdump -------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This declares a new error_category for the llvm-cxxdump tool.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_TOOLS_LLVM_CXXDUMP_ERROR_H
14 #define LLVM_TOOLS_LLVM_CXXDUMP_ERROR_H
16 #include <system_error>
18 namespace llvm {
19 const std::error_category &cxxdump_category();
21 enum class cxxdump_error {
22 success = 0,
23 file_not_found,
24 unrecognized_file_format,
27 inline std::error_code make_error_code(cxxdump_error e) {
28 return std::error_code(static_cast<int>(e), cxxdump_category());
31 } // namespace llvm
33 namespace std {
34 template <>
35 struct is_error_code_enum<llvm::cxxdump_error> : std::true_type {};
38 #endif