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. |
11 // This currently relies on llvm::cl to parse. In the future, the minimal | 11 // This currently relies on llvm::cl to parse. In the future, the minimal |
12 // build can have a simpler parser. | 12 // build can have a simpler parser. |
13 // | 13 // |
14 //===----------------------------------------------------------------------===// | 14 //===----------------------------------------------------------------------===// |
15 | 15 |
16 #include "IceClFlags.h" | 16 #include "IceClFlags.h" |
17 | 17 |
18 #include "IceClFlagsExtra.h" | 18 #include "IceClFlagsExtra.h" |
| 19 |
| 20 #pragma clang diagnostic push |
| 21 #pragma clang diagnostic ignored "-Wunused-parameter" |
19 #include "llvm/Support/CommandLine.h" | 22 #include "llvm/Support/CommandLine.h" |
| 23 #pragma clang diagnostic pop |
20 | 24 |
21 namespace cl = llvm::cl; | 25 namespace cl = llvm::cl; |
22 | 26 |
23 // Options which are captured in Ice::ClFlags and propagated. | 27 // Options which are captured in Ice::ClFlags and propagated. |
24 | 28 |
25 namespace { | 29 namespace { |
26 | 30 |
27 cl::opt<bool> AllowErrorRecovery( | 31 cl::opt<bool> AllowErrorRecovery( |
28 "allow-pnacl-reader-error-recovery", | 32 "allow-pnacl-reader-error-recovery", |
29 cl::desc("Allow error recovery when reading PNaCl bitcode."), | 33 cl::desc("Allow error recovery when reading PNaCl bitcode."), |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); | 389 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); |
386 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); | 390 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); |
387 OutFlagsExtra.setAppName(AppName); | 391 OutFlagsExtra.setAppName(AppName); |
388 OutFlagsExtra.setInputFileFormat(InputFileFormat); | 392 OutFlagsExtra.setInputFileFormat(InputFileFormat); |
389 OutFlagsExtra.setIRFilename(IRFilename); | 393 OutFlagsExtra.setIRFilename(IRFilename); |
390 OutFlagsExtra.setLogFilename(LogFilename); | 394 OutFlagsExtra.setLogFilename(LogFilename); |
391 OutFlagsExtra.setOutputFilename(OutputFilename); | 395 OutFlagsExtra.setOutputFilename(OutputFilename); |
392 } | 396 } |
393 | 397 |
394 } // end of namespace Ice | 398 } // end of namespace Ice |
OLD | NEW |