Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: src/IceClFlags.cpp

Issue 1197863003: Subzero: Reduce the amount of #ifdef'd code. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Cleanup Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceClFlags.h ('k') | src/IceCompileServer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceClFlags.cpp - Command line flags and parsing --------===// 1 //===- subzero/src/IceClFlags.cpp - Command line flags and parsing --------===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file defines commandline flags parsing. 10 // This file defines commandline flags parsing.
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 OutFlags.RandomSeed = 0; 327 OutFlags.RandomSeed = 0;
328 } 328 }
329 329
330 void ClFlags::getParsedClFlags(ClFlags &OutFlags) { 330 void ClFlags::getParsedClFlags(ClFlags &OutFlags) {
331 if (::DisableIRGeneration) 331 if (::DisableIRGeneration)
332 ::DisableTranslation = true; 332 ::DisableTranslation = true;
333 333
334 Ice::VerboseMask VMask = Ice::IceV_None; 334 Ice::VerboseMask VMask = Ice::IceV_None;
335 // Don't generate verbose messages if routines 335 // Don't generate verbose messages if routines
336 // to dump messages are not available. 336 // to dump messages are not available.
337 if (ALLOW_DUMP) { 337 if (BuildDefs::dump()) {
338 for (unsigned i = 0; i != VerboseList.size(); ++i) 338 for (unsigned i = 0; i != VerboseList.size(); ++i)
339 VMask |= VerboseList[i]; 339 VMask |= VerboseList[i];
340 } 340 }
341 341
342 OutFlags.setAllowErrorRecovery(::AllowErrorRecovery); 342 OutFlags.setAllowErrorRecovery(::AllowErrorRecovery);
343 OutFlags.setAllowUninitializedGlobals(::AllowUninitializedGlobals); 343 OutFlags.setAllowUninitializedGlobals(::AllowUninitializedGlobals);
344 OutFlags.setDataSections(::DataSections); 344 OutFlags.setDataSections(::DataSections);
345 OutFlags.setDecorateAsm(::DecorateAsm); 345 OutFlags.setDecorateAsm(::DecorateAsm);
346 OutFlags.setDefaultFunctionPrefix(::DefaultFunctionPrefix); 346 OutFlags.setDefaultFunctionPrefix(::DefaultFunctionPrefix);
347 OutFlags.setDefaultGlobalPrefix(::DefaultGlobalPrefix); 347 OutFlags.setDefaultGlobalPrefix(::DefaultGlobalPrefix);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); 385 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts);
386 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); 386 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors);
387 OutFlagsExtra.setAppName(AppName); 387 OutFlagsExtra.setAppName(AppName);
388 OutFlagsExtra.setInputFileFormat(InputFileFormat); 388 OutFlagsExtra.setInputFileFormat(InputFileFormat);
389 OutFlagsExtra.setIRFilename(IRFilename); 389 OutFlagsExtra.setIRFilename(IRFilename);
390 OutFlagsExtra.setLogFilename(LogFilename); 390 OutFlagsExtra.setLogFilename(LogFilename);
391 OutFlagsExtra.setOutputFilename(OutputFilename); 391 OutFlagsExtra.setOutputFilename(OutputFilename);
392 } 392 }
393 393
394 } // end of namespace Ice 394 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceClFlags.h ('k') | src/IceCompileServer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698