Sean Silva | 3b76e40 | 2013-06-05 19:56:47 +0000 | [diff] [blame] | 1 | //===--- yaml2obj.h - -------------------------------------------*- C++ -*-===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 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 |
Sean Silva | 3b76e40 | 2013-06-05 19:56:47 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | /// \file |
Adrian Prantl | 5f8f34e4 | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 9 | /// Common declarations for yaml2obj |
Sean Silva | 3b76e40 | 2013-06-05 19:56:47 +0000 | [diff] [blame] | 10 | //===----------------------------------------------------------------------===// |
Benjamin Kramer | a7c40ef | 2014-08-13 16:26:38 +0000 | [diff] [blame] | 11 | #ifndef LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H |
| 12 | #define LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H |
Sean Silva | 3b76e40 | 2013-06-05 19:56:47 +0000 | [diff] [blame] | 13 | |
| 14 | namespace llvm { |
Simon Atanasyan | f97af8a | 2014-05-31 04:51:07 +0000 | [diff] [blame] | 15 | class raw_ostream; |
Chris Bieneman | 8ff0c11 | 2016-06-27 19:53:53 +0000 | [diff] [blame] | 16 | |
| 17 | namespace COFFYAML { |
| 18 | struct Object; |
| 19 | } |
| 20 | |
| 21 | namespace ELFYAML { |
| 22 | struct Object; |
| 23 | } |
| 24 | |
Derek Schuff | d3d84fd | 2017-03-30 19:44:09 +0000 | [diff] [blame] | 25 | namespace WasmYAML { |
| 26 | struct Object; |
| 27 | } |
| 28 | |
Simon Atanasyan | f97af8a | 2014-05-31 04:51:07 +0000 | [diff] [blame] | 29 | namespace yaml { |
| 30 | class Input; |
Chris Bieneman | 8ff0c11 | 2016-06-27 19:53:53 +0000 | [diff] [blame] | 31 | struct YamlObjectFile; |
Sean Silva | 3b76e40 | 2013-06-05 19:56:47 +0000 | [diff] [blame] | 32 | } |
Simon Atanasyan | f97af8a | 2014-05-31 04:51:07 +0000 | [diff] [blame] | 33 | } |
Chris Bieneman | 8ff0c11 | 2016-06-27 19:53:53 +0000 | [diff] [blame] | 34 | |
| 35 | int yaml2coff(llvm::COFFYAML::Object &Doc, llvm::raw_ostream &Out); |
| 36 | int yaml2elf(llvm::ELFYAML::Object &Doc, llvm::raw_ostream &Out); |
| 37 | int yaml2macho(llvm::yaml::YamlObjectFile &Doc, llvm::raw_ostream &Out); |
Derek Schuff | d3d84fd | 2017-03-30 19:44:09 +0000 | [diff] [blame] | 38 | int yaml2wasm(llvm::WasmYAML::Object &Doc, llvm::raw_ostream &Out); |
Sean Silva | 3b76e40 | 2013-06-05 19:56:47 +0000 | [diff] [blame] | 39 | |
Sean Silva | 3b76e40 | 2013-06-05 19:56:47 +0000 | [diff] [blame] | 40 | #endif |