summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-04-10 21:49:28 +0000
committerRui Ueyama <ruiu@google.com>2015-04-10 21:49:28 +0000
commit4a576bfd23f47e86c0b6be08280dc5c8bbc6cbe7 (patch)
treed9c4ec53b3e6a3219c8c38f15a5e13398c170d3c
parent8531d8c491aca1209f0ce9c4431a263c9c54c589 (diff)
downloadbcm5719-llvm-4a576bfd23f47e86c0b6be08280dc5c8bbc6cbe7.tar.gz
bcm5719-llvm-4a576bfd23f47e86c0b6be08280dc5c8bbc6cbe7.zip
Use C++11 non-static member initialization.
llvm-svn: 234648
-rw-r--r--lld/include/lld/ReaderWriter/YamlContext.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/lld/include/lld/ReaderWriter/YamlContext.h b/lld/include/lld/ReaderWriter/YamlContext.h
index 5d16e47b06f..b26161a1543 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;
};
OpenPOWER on IntegriCloud