mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-24 21:15:04 +00:00
15135b3b8a
This patch pulls the yaml2dwarf code out of yaml2obj into a new set of DWARF emitter functions in the DWARFYAML namespace. This will enable the YAML->DWARF code to be used inside DWARF tests by populating the DWARFYAML structs and calling the Emitter functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291828 91177308-0d34-0410-b5e6-96231b3b80d8
37 lines
942 B
C++
37 lines
942 B
C++
//===--- 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
|
|
/// \brief Common declarations for yaml2obj
|
|
//===----------------------------------------------------------------------===//
|
|
#ifndef LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H
|
|
#define LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H
|
|
|
|
namespace llvm {
|
|
class raw_ostream;
|
|
|
|
namespace COFFYAML {
|
|
struct Object;
|
|
}
|
|
|
|
namespace ELFYAML {
|
|
struct Object;
|
|
}
|
|
|
|
namespace yaml {
|
|
class Input;
|
|
struct YamlObjectFile;
|
|
}
|
|
}
|
|
|
|
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);
|
|
|
|
#endif
|