OSDN Git Service

[llvm-objcopy][llvm-strip] Fix help text typo for --allow-broken-links
[android-x86/external-llvm.git] / tools / yaml2obj / yaml2obj.h
1 //===--- yaml2obj.h - -------------------------------------------*- 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 /// \file
9 /// Common declarations for yaml2obj
10 //===----------------------------------------------------------------------===//
11 #ifndef LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H
12 #define LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H
13
14 namespace llvm {
15 class raw_ostream;
16
17 namespace COFFYAML {
18 struct Object;
19 }
20
21 namespace ELFYAML {
22 struct Object;
23 }
24
25 namespace MinidumpYAML {
26 struct Object;
27 }
28
29 namespace WasmYAML {
30 struct Object;
31 }
32
33 namespace yaml {
34 class Input;
35 struct YamlObjectFile;
36 }
37 }
38
39 int yaml2coff(llvm::COFFYAML::Object &Doc, llvm::raw_ostream &Out);
40 int yaml2elf(llvm::ELFYAML::Object &Doc, llvm::raw_ostream &Out);
41 int yaml2macho(llvm::yaml::YamlObjectFile &Doc, llvm::raw_ostream &Out);
42 int yaml2minidump(llvm::MinidumpYAML::Object &Doc, llvm::raw_ostream &Out);
43 int yaml2wasm(llvm::WasmYAML::Object &Doc, llvm::raw_ostream &Out);
44
45 #endif