Fixing @llvm.memcpy not honoring volatile.
[llvm-core.git] / tools / yaml2obj / yaml2obj.h
blob60c298771d882586bbf33a4aa6dee8e13804db74
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 MinidumpYAML {
26 struct Object;
29 namespace WasmYAML {
30 struct Object;
33 namespace yaml {
34 class Input;
35 struct YamlObjectFile;
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);
45 #endif