LLVM  4.0.0
ObjectYAML.h
Go to the documentation of this file.
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 
17 
18 namespace llvm {
19 namespace yaml {
20 
22  std::unique_ptr<ELFYAML::Object> Elf;
23  std::unique_ptr<COFFYAML::Object> Coff;
24  std::unique_ptr<MachOYAML::Object> MachO;
25  std::unique_ptr<MachOYAML::UniversalBinary> FatMachO;
26 };
27 
28 template <> struct MappingTraits<YamlObjectFile> {
29  static void mapping(IO &IO, YamlObjectFile &ObjectFile);
30 };
31 
32 } // namespace yaml
33 } // namespace llvm
34 
35 #endif
This file declares classes for handling the YAML representation of ELF.
This class is the base class for all object file types.
Definition: ObjectFile.h:178
This class should be specialized by any type that needs to be converted to/from a YAML mapping...
std::unique_ptr< COFFYAML::Object > Coff
Definition: ObjectYAML.h:23
std::unique_ptr< MachOYAML::Object > MachO
Definition: ObjectYAML.h:24
This file declares classes for handling the YAML representation of Mach-O.
std::unique_ptr< MachOYAML::UniversalBinary > FatMachO
Definition: ObjectYAML.h:25
std::unique_ptr< ELFYAML::Object > Elf
Definition: ObjectYAML.h:22