2013-06-06 03:56:47 +08:00
|
|
|
//===--- yaml2obj.h - -------------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
/// \file
|
2018-05-01 23:54:18 +08:00
|
|
|
/// Common declarations for yaml2obj
|
2013-06-06 03:56:47 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H
|
|
|
|
#define LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H
|
2013-06-06 03:56:47 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
2014-05-31 12:51:07 +08:00
|
|
|
class raw_ostream;
|
2016-06-28 03:53:53 +08:00
|
|
|
|
|
|
|
namespace COFFYAML {
|
|
|
|
struct Object;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ELFYAML {
|
|
|
|
struct Object;
|
|
|
|
}
|
|
|
|
|
2017-03-31 03:44:09 +08:00
|
|
|
namespace WasmYAML {
|
|
|
|
struct Object;
|
|
|
|
}
|
|
|
|
|
2014-05-31 12:51:07 +08:00
|
|
|
namespace yaml {
|
|
|
|
class Input;
|
2016-06-28 03:53:53 +08:00
|
|
|
struct YamlObjectFile;
|
2013-06-06 03:56:47 +08:00
|
|
|
}
|
2014-05-31 12:51:07 +08:00
|
|
|
}
|
2016-06-28 03:53:53 +08:00
|
|
|
|
|
|
|
int yaml2coff(llvm::COFFYAML::Object &Doc, llvm::raw_ostream &Out);
|
|
|
|
int yaml2elf(llvm::ELFYAML::Object &Doc, llvm::raw_ostream &Out);
|
|
|
|
int yaml2macho(llvm::yaml::YamlObjectFile &Doc, llvm::raw_ostream &Out);
|
2017-03-31 03:44:09 +08:00
|
|
|
int yaml2wasm(llvm::WasmYAML::Object &Doc, llvm::raw_ostream &Out);
|
2013-06-06 03:56:47 +08:00
|
|
|
|
|
|
|
#endif
|