You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.207
Former-commit-id: 3b152f462918d427ce18620a2cbe4f8b79650449
This commit is contained in:
parent
8e12397d70
commit
eb85e2fc17
10
external/llvm/tools/llvm-cxxdump/CMakeLists.txt
vendored
10
external/llvm/tools/llvm-cxxdump/CMakeLists.txt
vendored
@ -1,10 +0,0 @@
|
||||
set(LLVM_LINK_COMPONENTS
|
||||
${LLVM_TARGETS_TO_BUILD}
|
||||
Object
|
||||
Support
|
||||
)
|
||||
|
||||
add_llvm_tool(llvm-cxxdump
|
||||
llvm-cxxdump.cpp
|
||||
Error.cpp
|
||||
)
|
46
external/llvm/tools/llvm-cxxdump/Error.cpp
vendored
46
external/llvm/tools/llvm-cxxdump/Error.cpp
vendored
@ -1,46 +0,0 @@
|
||||
//===- Error.cxx - 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
|
39
external/llvm/tools/llvm-cxxdump/Error.h
vendored
39
external/llvm/tools/llvm-cxxdump/Error.h
vendored
@ -1,39 +0,0 @@
|
||||
//===- Error.h - 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 declares a new error_category for the llvm-cxxdump tool.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_TOOLS_LLVM_CXXDUMP_ERROR_H
|
||||
#define LLVM_TOOLS_LLVM_CXXDUMP_ERROR_H
|
||||
|
||||
#include <system_error>
|
||||
|
||||
namespace llvm {
|
||||
const std::error_category &cxxdump_category();
|
||||
|
||||
enum class cxxdump_error {
|
||||
success = 0,
|
||||
file_not_found,
|
||||
unrecognized_file_format,
|
||||
};
|
||||
|
||||
inline std::error_code make_error_code(cxxdump_error e) {
|
||||
return std::error_code(static_cast<int>(e), cxxdump_category());
|
||||
}
|
||||
|
||||
} // namespace llvm
|
||||
|
||||
namespace std {
|
||||
template <>
|
||||
struct is_error_code_enum<llvm::cxxdump_error> : std::true_type {};
|
||||
}
|
||||
|
||||
#endif
|
22
external/llvm/tools/llvm-cxxdump/LLVMBuild.txt
vendored
22
external/llvm/tools/llvm-cxxdump/LLVMBuild.txt
vendored
@ -1,22 +0,0 @@
|
||||
;===- ./tools/llvm-cxxdump/LLVMBuild.txt -----------------------*- Conf -*--===;
|
||||
;
|
||||
; The LLVM Compiler Infrastructure
|
||||
;
|
||||
; This file is distributed under the University of Illinois Open Source
|
||||
; License. See LICENSE.TXT for details.
|
||||
;
|
||||
;===------------------------------------------------------------------------===;
|
||||
;
|
||||
; This is an LLVMBuild description file for the components in this subdirectory.
|
||||
;
|
||||
; For more information on the LLVMBuild system, please see:
|
||||
;
|
||||
; http://llvm.org/docs/LLVMBuild.html
|
||||
;
|
||||
;===------------------------------------------------------------------------===;
|
||||
|
||||
[component_0]
|
||||
type = Tool
|
||||
name = llvm-cxxdump
|
||||
parent = Tools
|
||||
required_libraries = all-targets BitReader Object
|
555
external/llvm/tools/llvm-cxxdump/llvm-cxxdump.cpp
vendored
555
external/llvm/tools/llvm-cxxdump/llvm-cxxdump.cpp
vendored
File diff suppressed because it is too large
Load Diff
23
external/llvm/tools/llvm-cxxdump/llvm-cxxdump.h
vendored
23
external/llvm/tools/llvm-cxxdump/llvm-cxxdump.h
vendored
@ -1,23 +0,0 @@
|
||||
//===-- llvm-cxxdump.h ------------------------------------------*- C++ -*-===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_TOOLS_LLVM_CXXDUMP_LLVM_CXXDUMP_H
|
||||
#define LLVM_TOOLS_LLVM_CXXDUMP_LLVM_CXXDUMP_H
|
||||
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include <string>
|
||||
|
||||
namespace opts {
|
||||
extern llvm::cl::list<std::string> InputFilenames;
|
||||
} // namespace opts
|
||||
|
||||
#define LLVM_CXXDUMP_ENUM_ENT(ns, enum) \
|
||||
{ #enum, ns::enum }
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user