@@ -63,7 +63,6 @@ std::string runCommand(std::string command) {
6363int main (int argc, const char * argv[]) {
6464 Name entry;
6565 bool emitBinary = true ;
66- bool debugInfo = false ;
6766 bool converge = false ;
6867 bool fuzzExecBefore = false ;
6968 bool fuzzExecAfter = false ;
@@ -95,11 +94,6 @@ int main(int argc, const char* argv[]) {
9594 " Emit text instead of binary for the output file" ,
9695 Options::Arguments::Zero,
9796 [&](Options* o, const std::string& argument) { emitBinary = false ; })
98- .add (" --debuginfo" ,
99- " -g" ,
100- " Emit names section and debug info" ,
101- Options::Arguments::Zero,
102- [&](Options* o, const std::string& arguments) { debugInfo = true ; })
10397 .add (" --converge" ,
10498 " -c" ,
10599 " Run passes to convergence, continuing while binary size decreases" ,
@@ -295,7 +289,7 @@ int main(int argc, const char* argv[]) {
295289 ModuleWriter writer;
296290 writer.setDebug (options.debug );
297291 writer.setBinary (emitBinary);
298- writer.setDebugInfo (debugInfo);
292+ writer.setDebugInfo (options. passOptions . debugInfo );
299293 writer.write (wasm, options.extra [" output" ]);
300294 firstOutput = runCommand (extraFuzzCommand);
301295 std::cout << " [extra-fuzz-command first output:]\n " << firstOutput << ' \n ' ;
@@ -377,7 +371,7 @@ int main(int argc, const char* argv[]) {
377371 ModuleWriter writer;
378372 writer.setDebug (options.debug );
379373 writer.setBinary (emitBinary);
380- writer.setDebugInfo (debugInfo);
374+ writer.setDebugInfo (options. passOptions . debugInfo );
381375 if (outputSourceMapFilename.size ()) {
382376 writer.setSourceMapFilename (outputSourceMapFilename);
383377 writer.setSourceMapUrl (outputSourceMapUrl);
0 commit comments