2013-06-05 21:56:47 +02: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
|
|
|
|
/// \brief Common declarations for yaml2obj
|
|
|
|
//===----------------------------------------------------------------------===//
|
2014-08-13 18:26:38 +02:00
|
|
|
#ifndef LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H
|
|
|
|
#define LLVM_TOOLS_YAML2OBJ_YAML2OBJ_H
|
2013-06-05 21:56:47 +02:00
|
|
|
|
|
|
|
namespace llvm {
|
2014-05-31 06:51:07 +02:00
|
|
|
class raw_ostream;
|
2016-06-27 21:53:53 +02:00
|
|
|
|
|
|
|
namespace COFFYAML {
|
|
|
|
struct Object;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ELFYAML {
|
|
|
|
struct Object;
|
|
|
|
}
|
|
|
|
|
2016-12-07 23:30:15 +01:00
|
|
|
namespace DWARFYAML {
|
2016-12-08 18:46:57 +01:00
|
|
|
struct Data;
|
2016-12-07 23:30:15 +01:00
|
|
|
}
|
|
|
|
|
2014-05-31 06:51:07 +02:00
|
|
|
namespace yaml {
|
|
|
|
class Input;
|
2016-06-27 21:53:53 +02:00
|
|
|
struct YamlObjectFile;
|
2013-06-05 21:56:47 +02:00
|
|
|
}
|
2014-05-31 06:51:07 +02:00
|
|
|
}
|
2016-06-27 21:53:53 +02: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);
|
2013-06-05 21:56:47 +02:00
|
|
|
|
2016-12-07 23:30:15 +01:00
|
|
|
void yaml2debug_abbrev(llvm::raw_ostream &OS,
|
2016-12-08 18:46:57 +01:00
|
|
|
const llvm::DWARFYAML::Data &DI);
|
2016-12-07 23:30:15 +01:00
|
|
|
void yaml2debug_str(llvm::raw_ostream &OS,
|
2016-12-08 18:46:57 +01:00
|
|
|
const llvm::DWARFYAML::Data &DI);
|
2016-12-07 23:30:15 +01:00
|
|
|
|
2016-12-09 01:26:44 +01:00
|
|
|
void yaml2debug_aranges(llvm::raw_ostream &OS, const llvm::DWARFYAML::Data &DI);
|
|
|
|
|
2013-06-05 21:56:47 +02:00
|
|
|
#endif
|