[lld] r262447 - Use C++11 initializers for data members.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 1 17:49:27 PST 2016
Author: ruiu
Date: Tue Mar 1 19:49:27 2016
New Revision: 262447
URL: http://llvm.org/viewvc/llvm-project?rev=262447&view=rev
Log:
Use C++11 initializers for data members.
Modified:
lld/trunk/include/lld/Core/LinkingContext.h
lld/trunk/lib/Core/LinkingContext.cpp
Modified: lld/trunk/include/lld/Core/LinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/LinkingContext.h?rev=262447&r1=262446&r2=262447&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/LinkingContext.h (original)
+++ lld/trunk/include/lld/Core/LinkingContext.h Tue Mar 1 19:49:27 2016
@@ -255,20 +255,20 @@ protected:
StringRef _outputPath;
StringRef _entrySymbolName;
- bool _deadStrip;
- bool _globalsAreDeadStripRoots;
- bool _searchArchivesToOverrideTentativeDefinitions;
- bool _searchSharedLibrariesToOverrideTentativeDefinitions;
- bool _printRemainingUndefines;
- bool _allowRemainingUndefines;
- bool _logInputFiles;
- bool _allowShlibUndefines;
+ bool _deadStrip = false;
+ bool _globalsAreDeadStripRoots = false;
+ bool _searchArchivesToOverrideTentativeDefinitions = false;
+ bool _searchSharedLibrariesToOverrideTentativeDefinitions = false;
+ bool _printRemainingUndefines = true;
+ bool _allowRemainingUndefines = false;
+ bool _logInputFiles = false;
+ bool _allowShlibUndefines = true;
std::vector<StringRef> _deadStripRoots;
std::vector<const char *> _llvmOptions;
StringRefVector _initialUndefinedSymbols;
std::vector<std::unique_ptr<Node>> _nodes;
mutable llvm::BumpPtrAllocator _allocator;
- mutable uint64_t _nextOrdinal;
+ mutable uint64_t _nextOrdinal = 0;
Registry _registry;
private:
Modified: lld/trunk/lib/Core/LinkingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/LinkingContext.cpp?rev=262447&r1=262446&r2=262447&view=diff
==============================================================================
--- lld/trunk/lib/Core/LinkingContext.cpp (original)
+++ lld/trunk/lib/Core/LinkingContext.cpp Tue Mar 1 19:49:27 2016
@@ -15,13 +15,7 @@
namespace lld {
-LinkingContext::LinkingContext()
- : _deadStrip(false), _globalsAreDeadStripRoots(false),
- _searchArchivesToOverrideTentativeDefinitions(false),
- _searchSharedLibrariesToOverrideTentativeDefinitions(false),
- _printRemainingUndefines(true), _allowRemainingUndefines(false),
- _logInputFiles(false), _allowShlibUndefines(true),
- _nextOrdinal(0) {}
+LinkingContext::LinkingContext() {}
LinkingContext::~LinkingContext() {}
More information about the llvm-commits
mailing list