ObjectYAML.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- ObjectYAML.h ---------------------------------------------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_OBJECTYAML_OBJECTYAML_H
  14. #define LLVM_OBJECTYAML_OBJECTYAML_H
  15. #include "llvm/ObjectYAML/ArchiveYAML.h"
  16. #include "llvm/ObjectYAML/COFFYAML.h"
  17. #include "llvm/ObjectYAML/DXContainerYAML.h"
  18. #include "llvm/ObjectYAML/ELFYAML.h"
  19. #include "llvm/ObjectYAML/MachOYAML.h"
  20. #include "llvm/ObjectYAML/MinidumpYAML.h"
  21. #include "llvm/ObjectYAML/OffloadYAML.h"
  22. #include "llvm/ObjectYAML/WasmYAML.h"
  23. #include "llvm/ObjectYAML/XCOFFYAML.h"
  24. #include "llvm/Support/YAMLTraits.h"
  25. #include <memory>
  26. namespace llvm {
  27. namespace yaml {
  28. class IO;
  29. struct YamlObjectFile {
  30. std::unique_ptr<ArchYAML::Archive> Arch;
  31. std::unique_ptr<ELFYAML::Object> Elf;
  32. std::unique_ptr<COFFYAML::Object> Coff;
  33. std::unique_ptr<MachOYAML::Object> MachO;
  34. std::unique_ptr<MachOYAML::UniversalBinary> FatMachO;
  35. std::unique_ptr<MinidumpYAML::Object> Minidump;
  36. std::unique_ptr<OffloadYAML::Binary> Offload;
  37. std::unique_ptr<WasmYAML::Object> Wasm;
  38. std::unique_ptr<XCOFFYAML::Object> Xcoff;
  39. std::unique_ptr<DXContainerYAML::Object> DXContainer;
  40. };
  41. template <> struct MappingTraits<YamlObjectFile> {
  42. static void mapping(IO &IO, YamlObjectFile &ObjectFile);
  43. };
  44. } // end namespace yaml
  45. } // end namespace llvm
  46. #endif // LLVM_OBJECTYAML_OBJECTYAML_H
  47. #ifdef __GNUC__
  48. #pragma GCC diagnostic pop
  49. #endif