| OLD | NEW |
| 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 Loading... |
| 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 (buildAllowsDump()) { |
| 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 Loading... |
| 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 |
| OLD | NEW |