1 //===- ObjectYAML.h ---------------------------------------------*- 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 //===----------------------------------------------------------------------===// 9 10 #ifndef LLVM_OBJECTYAML_OBJECTYAML_H 11 #define LLVM_OBJECTYAML_OBJECTYAML_H 12 13 #include "llvm/ObjectYAML/COFFYAML.h" 14 #include "llvm/ObjectYAML/ELFYAML.h" 15 #include "llvm/ObjectYAML/MachOYAML.h" 16 #include "llvm/ObjectYAML/WasmYAML.h" 17 #include "llvm/Support/YAMLTraits.h" 18 19 namespace llvm { 20 namespace yaml { 21 22 struct YamlObjectFile { 23 std::unique_ptr<ELFYAML::Object> Elf; 24 std::unique_ptr<COFFYAML::Object> Coff; 25 std::unique_ptr<MachOYAML::Object> MachO; 26 std::unique_ptr<MachOYAML::UniversalBinary> FatMachO; 27 std::unique_ptr<WasmYAML::Object> Wasm; 28 }; 29 30 template <> struct MappingTraits<YamlObjectFile> { 31 static void mapping(IO &IO, YamlObjectFile &ObjectFile); 32 }; 33 34 } // namespace yaml 35 } // namespace llvm 36 37 #endif 38