LLVM  14.0.0git
ObjectYAML.h
Go to the documentation of this file.
1 //===- ObjectYAML.h ---------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_OBJECTYAML_OBJECTYAML_H
10 #define LLVM_OBJECTYAML_OBJECTYAML_H
11 
20 #include <memory>
21 
22 namespace llvm {
23 namespace yaml {
24 
25 class IO;
26 
28  std::unique_ptr<ArchYAML::Archive> Arch;
29  std::unique_ptr<ELFYAML::Object> Elf;
30  std::unique_ptr<COFFYAML::Object> Coff;
31  std::unique_ptr<MachOYAML::Object> MachO;
32  std::unique_ptr<MachOYAML::UniversalBinary> FatMachO;
33  std::unique_ptr<MinidumpYAML::Object> Minidump;
34  std::unique_ptr<WasmYAML::Object> Wasm;
35  std::unique_ptr<XCOFFYAML::Object> Xcoff;
36 };
37 
38 template <> struct MappingTraits<YamlObjectFile> {
39  static void mapping(IO &IO, YamlObjectFile &ObjectFile);
40 };
41 
42 } // end namespace yaml
43 } // end namespace llvm
44 
45 #endif // LLVM_OBJECTYAML_OBJECTYAML_H
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
ArchiveYAML.h
llvm::yaml::YamlObjectFile
Definition: ObjectYAML.h:27
llvm::yaml::YamlObjectFile::Minidump
std::unique_ptr< MinidumpYAML::Object > Minidump
Definition: ObjectYAML.h:33
llvm::yaml::YamlObjectFile::Elf
std::unique_ptr< ELFYAML::Object > Elf
Definition: ObjectYAML.h:29
llvm::yaml::MappingTraits
Definition: ModuleSummaryIndex.h:52
MinidumpYAML.h
ELFYAML.h
llvm::yaml::YamlObjectFile::Coff
std::unique_ptr< COFFYAML::Object > Coff
Definition: ObjectYAML.h:30
WasmYAML.h
llvm::yaml::YamlObjectFile::Xcoff
std::unique_ptr< XCOFFYAML::Object > Xcoff
Definition: ObjectYAML.h:35
llvm::yaml::YamlObjectFile::MachO
std::unique_ptr< MachOYAML::Object > MachO
Definition: ObjectYAML.h:31
MachOYAML.h
YAMLTraits.h
llvm::yaml::YamlObjectFile::FatMachO
std::unique_ptr< MachOYAML::UniversalBinary > FatMachO
Definition: ObjectYAML.h:32
XCOFFYAML.h
COFFYAML.h
llvm::yaml::YamlObjectFile::Arch
std::unique_ptr< ArchYAML::Archive > Arch
Definition: ObjectYAML.h:28
llvm::yaml::YamlObjectFile::Wasm
std::unique_ptr< WasmYAML::Object > Wasm
Definition: ObjectYAML.h:34