llvm-mirror/tools/yaml2obj/yaml2obj.h
Sean Silva 141d676063 [yaml2obj] Initial ELF support.
Currently, only emitting the ELF header is supported (no sections or
segments).

The ELFYAML code organization is broadly similar to the COFFYAML code.

llvm-svn: 183711
2013-06-10 23:44:15 +00:00

23 lines
734 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_H
#define LLVM_TOOLS_YAML2OBJ_H
namespace llvm {
class raw_ostream;
class MemoryBuffer;
}
int yaml2coff(llvm::raw_ostream &Out, llvm::MemoryBuffer *Buf);
int yaml2elf(llvm::raw_ostream &Out, llvm::MemoryBuffer *Buf);
#endif