summaryrefslogtreecommitdiff
path: root/include/lld/ReaderWriter/YamlContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lld/ReaderWriter/YamlContext.h')
-rw-r--r--include/lld/ReaderWriter/YamlContext.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/lld/ReaderWriter/YamlContext.h b/include/lld/ReaderWriter/YamlContext.h
index a15a398ec636..b26161a15431 100644
--- a/include/lld/ReaderWriter/YamlContext.h
+++ b/include/lld/ReaderWriter/YamlContext.h
@@ -30,14 +30,10 @@ using lld::mach_o::normalized::NormalizedFile;
/// object. We need to support hetergenous yaml documents which each require
/// different context info. This struct supports all clients.
struct YamlContext {
- YamlContext()
- : _linkingContext(nullptr), _registry(nullptr), _file(nullptr),
- _normalizeMachOFile(nullptr) {}
-
- const LinkingContext *_linkingContext;
- const Registry *_registry;
- File *_file;
- NormalizedFile *_normalizeMachOFile;
+ const LinkingContext *_ctx = nullptr;
+ const Registry *_registry = nullptr;
+ File *_file = nullptr;
+ NormalizedFile *_normalizeMachOFile = nullptr;
StringRef _path;
};