obj2yaml.h 933 B

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