[lld] r248922 - ELF2: Do not set default values that will always be overwritten.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 10:26:14 PDT 2015


Author: ruiu
Date: Wed Sep 30 12:26:13 2015
New Revision: 248922

URL: http://llvm.org/viewvc/llvm-project?rev=248922&view=rev
Log:
ELF2: Do not set default values that will always be overwritten.

These member variables are overwritten unconditionally by Driver,
so setting default values would be confusing.

Modified:
    lld/trunk/ELF/Config.h

Modified: lld/trunk/ELF/Config.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Config.h?rev=248922&r1=248921&r2=248922&view=diff
==============================================================================
--- lld/trunk/ELF/Config.h (original)
+++ lld/trunk/ELF/Config.h Wed Sep 30 12:26:13 2015
@@ -24,13 +24,13 @@ struct Configuration {
   llvm::StringRef Sysroot;
   std::string RPath;
   std::vector<llvm::StringRef> InputSearchPaths;
-  bool AllowMultipleDefinition = false;
-  bool DiscardAll = false;
-  bool DiscardLocals = false;
-  bool DiscardNone = false;
-  bool ExportDynamic = false;
-  bool NoInhibitExec = false;
-  bool Shared = false;
+  bool AllowMultipleDefinition;
+  bool DiscardAll;
+  bool DiscardLocals;
+  bool DiscardNone;
+  bool ExportDynamic;
+  bool NoInhibitExec;
+  bool Shared;
 };
 
 extern Configuration *Config;




More information about the llvm-commits mailing list