[WebAssembly] Remove initializers from Config.h
authorSam Clegg <sbc@chromium.org>
Tue, 28 Nov 2017 20:27:21 +0000 (20:27 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 28 Nov 2017 20:27:21 +0000 (20:27 +0000)
These should get initialized in by Driver.cpp based on
command line options.

Also, sort entries.

Differential Revision: https://reviews.llvm.org/D40570

llvm-svn: 319219

lld/wasm/Config.h

index f3cf063..7d0708f 100644 (file)
@@ -23,23 +23,23 @@ namespace lld {
 namespace wasm {
 
 struct Configuration {
-  bool AllowUndefined = false;
-  bool Demangle = true;
-  bool EmitRelocs = false;
-  bool ImportMemory = false;
-  bool Relocatable = false;
-  bool StripDebug = false;
-  bool StripAll = false;
-  uint32_t ZStackSize = 0;
-  uint32_t MaxMemory = 0;
-  uint32_t GlobalBase = 0;
-  uint32_t InitialMemory = 0;
+  bool AllowUndefined;
+  bool Demangle;
+  bool EmitRelocs;
+  bool ImportMemory;
+  bool Relocatable;
+  bool StripAll;
+  bool StripDebug;
+  uint32_t GlobalBase;
+  uint32_t InitialMemory;
+  uint32_t MaxMemory;
+  uint32_t ZStackSize;
   llvm::StringRef Entry;
-  llvm::StringRef Sysroot;
   llvm::StringRef OutputFile;
+  llvm::StringRef Sysroot;
 
-  std::vector<llvm::StringRef> SearchPaths;
   std::set<llvm::StringRef> AllowUndefinedSymbols;
+  std::vector<llvm::StringRef> SearchPaths;
   std::vector<std::pair<Symbol *, WasmGlobal>> SyntheticGlobals;
 };