| 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 /// \file | 10 /// \file |
| 11 /// This file defines commandline flags parsing. | 11 /// This file defines commandline flags parsing. |
| 12 /// This currently relies on llvm::cl to parse. In the future, the minimal | 12 /// This currently relies on llvm::cl to parse. In the future, the minimal |
| 13 /// build can have a simpler parser. | 13 /// build can have a simpler parser. |
| 14 /// | 14 /// |
| 15 //===----------------------------------------------------------------------===// | 15 //===----------------------------------------------------------------------===// |
| 16 | 16 |
| 17 #include "IceClFlags.h" | 17 #include "IceClFlags.h" |
| 18 | 18 |
| 19 #include "IceClFlagsExtra.h" | 19 #include "IceClFlagsExtra.h" |
| 20 | 20 |
| 21 #pragma clang diagnostic push | 21 #pragma clang diagnostic push |
| 22 #pragma clang diagnostic ignored "-Wunused-parameter" | 22 #pragma clang diagnostic ignored "-Wunused-parameter" |
| 23 #pragma clang diagnostic ignored "-Wshadow" |
| 23 #include "llvm/Support/CommandLine.h" | 24 #include "llvm/Support/CommandLine.h" |
| 24 #pragma clang diagnostic pop | 25 #pragma clang diagnostic pop |
| 25 | 26 |
| 26 namespace cl = llvm::cl; | 27 namespace cl = llvm::cl; |
| 27 | 28 |
| 28 // Options which are captured in Ice::ClFlags and propagated. | 29 // Options which are captured in Ice::ClFlags and propagated. |
| 29 | 30 |
| 30 namespace { | 31 namespace { |
| 31 | 32 |
| 32 cl::opt<bool> AllowErrorRecovery( | 33 cl::opt<bool> AllowErrorRecovery( |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); | 433 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); |
| 433 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); | 434 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); |
| 434 OutFlagsExtra.setAppName(AppName); | 435 OutFlagsExtra.setAppName(AppName); |
| 435 OutFlagsExtra.setInputFileFormat(InputFileFormat); | 436 OutFlagsExtra.setInputFileFormat(InputFileFormat); |
| 436 OutFlagsExtra.setIRFilename(IRFilename); | 437 OutFlagsExtra.setIRFilename(IRFilename); |
| 437 OutFlagsExtra.setLogFilename(LogFilename); | 438 OutFlagsExtra.setLogFilename(LogFilename); |
| 438 OutFlagsExtra.setOutputFilename(OutputFilename); | 439 OutFlagsExtra.setOutputFilename(OutputFilename); |
| 439 } | 440 } |
| 440 | 441 |
| 441 } // end of namespace Ice | 442 } // end of namespace Ice |
| OLD | NEW |