1c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow//===------ utils/obj2yaml.hpp - obj2yaml conversion tool -------*- C++ -*-===//
2c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow//
3c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow//                     The LLVM Compiler Infrastructure
4c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow//
5c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow// This file is distributed under the University of Illinois Open Source
6c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow// License. See LICENSE.TXT for details.
7c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow//
8c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow// This file declares some helper routines, and also the format-specific
9c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow// writers. To add a new format, add the declaration here, and, in a separate
10c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow// source file, implement it.
11c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow//===----------------------------------------------------------------------===//
12c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow
1337ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines#ifndef LLVM_TOOLS_OBJ2YAML_OBJ2YAML_H
1437ed9c199ca639565f6ce88105f9e39e898d82d0Stephen Hines#define LLVM_TOOLS_OBJ2YAML_OBJ2YAML_H
15c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow
16dce4a407a24b04eebc6a376f8e62b41aaa7b071fStephen Hines#include "llvm/Object/COFF.h"
174ffd89fa4d2788611187d1a534d2ed46adf1702cChandler Carruth#include "llvm/Support/raw_ostream.h"
18c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines#include <system_error>
19c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow
20c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hinesstd::error_code coff2yaml(llvm::raw_ostream &Out,
21c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines                          const llvm::object::COFFObjectFile &Obj);
22c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hinesstd::error_code elf2yaml(llvm::raw_ostream &Out,
23c6a4f5e819217e1e12c458aed8e7b122e23a3a58Stephen Hines                         const llvm::object::ObjectFile &Obj);
24c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow
25c57b8885581aa3d512abc76991cd145d7e019852Marshall Clow#endif
26