Revert r354244 "[DAGCombiner] Eliminate dead stores to stack."
[llvm-complete.git] / tools / yaml2obj / yaml2obj.h
blob40ed9e7782db27501d558afdd88aa4899ef91659
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
14 namespace llvm {
15 class raw_ostream;
17 namespace COFFYAML {
18 struct Object;
21 namespace ELFYAML {
22 struct Object;
25 namespace WasmYAML {
26 struct Object;
29 namespace yaml {
30 class Input;
31 struct YamlObjectFile;
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);
38 int yaml2wasm(llvm::WasmYAML::Object &Doc, llvm::raw_ostream &Out);
40 #endif