[lld] r234648 - Use C++11 non-static member initialization.
Rui Ueyama
ruiu at google.com
Fri Apr 10 14:49:28 PDT 2015
Author: ruiu
Date: Fri Apr 10 16:49:28 2015
New Revision: 234648
URL: http://llvm.org/viewvc/llvm-project?rev=234648&view=rev
Log:
Use C++11 non-static member initialization.
Modified:
lld/trunk/include/lld/ReaderWriter/YamlContext.h
Modified: lld/trunk/include/lld/ReaderWriter/YamlContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/ReaderWriter/YamlContext.h?rev=234648&r1=234647&r2=234648&view=diff
==============================================================================
--- lld/trunk/include/lld/ReaderWriter/YamlContext.h (original)
+++ lld/trunk/include/lld/ReaderWriter/YamlContext.h Fri Apr 10 16:49:28 2015
@@ -30,14 +30,10 @@ using lld::mach_o::normalized::Normalize
/// 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;
};
More information about the llvm-commits
mailing list