From 4a576bfd23f47e86c0b6be08280dc5c8bbc6cbe7 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 10 Apr 2015 21:49:28 +0000 Subject: [PATCH] Use C++11 non-static member initialization. llvm-svn: 234648 --- lld/include/lld/ReaderWriter/YamlContext.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lld/include/lld/ReaderWriter/YamlContext.h b/lld/include/lld/ReaderWriter/YamlContext.h index 5d16e47..b26161a 100644 --- a/lld/include/lld/ReaderWriter/YamlContext.h +++ b/lld/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() - : _ctx(nullptr), _registry(nullptr), _file(nullptr), - _normalizeMachOFile(nullptr) {} - - const LinkingContext *_ctx; - const Registry *_registry; - File *_file; - NormalizedFile *_normalizeMachOFile; + const LinkingContext *_ctx = nullptr; + const Registry *_registry = nullptr; + File *_file = nullptr; + NormalizedFile *_normalizeMachOFile = nullptr; StringRef _path; }; -- 2.7.4