1 //===--- yaml2obj.h - -------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 /// \brief Common declarations for yaml2obj
11 //===----------------------------------------------------------------------===//
12 #ifndef LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H
13 #define LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H
33 struct YamlObjectFile;
37 int yaml2coff(llvm::COFFYAML::Object &Doc, llvm::raw_ostream &Out);
38 int yaml2elf(llvm::ELFYAML::Object &Doc, llvm::raw_ostream &Out);
39 int yaml2macho(llvm::yaml::YamlObjectFile &Doc, llvm::raw_ostream &Out);
41 void yaml2debug_abbrev(llvm::raw_ostream &OS, const llvm::DWARFYAML::Data &DI);
42 void yaml2debug_str(llvm::raw_ostream &OS, const llvm::DWARFYAML::Data &DI);
44 void yaml2debug_aranges(llvm::raw_ostream &OS, const llvm::DWARFYAML::Data &DI);
45 void yaml2pubsection(llvm::raw_ostream &OS,
46 const llvm::DWARFYAML::PubSection &Sect,
48 void yaml2debug_info(llvm::raw_ostream &OS, const llvm::DWARFYAML::Data &DI);
49 void yaml2debug_line(llvm::raw_ostream &OS, const llvm::DWARFYAML::Data &DI);