1 //===- lld/ReaderWriter/YamlContext.h - object used in YAML I/O context ---===//
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLD_READER_WRITER_YAML_CONTEXT_H
11 #define LLD_READER_WRITER_YAML_CONTEXT_H
13 #include "lld/Core/LLVM.h"
22 namespace normalized {
23 struct NormalizedFile;
27 using lld::mach_o::normalized::NormalizedFile;
29 /// When YAML I/O is used in lld, the yaml context always holds a YamlContext
30 /// object. We need to support hetergenous yaml documents which each require
31 /// different context info. This struct supports all clients.
34 : _linkingContext(nullptr), _registry(nullptr), _file(nullptr),
35 _normalizeMachOFile(nullptr) {}
37 const LinkingContext *_linkingContext;
38 const Registry *_registry;
40 NormalizedFile *_normalizeMachOFile;
44 } // end namespace lld
46 #endif // LLD_READER_WRITER_YAML_CONTEXT_H