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 /// \brief Defines commandline flags parsing of class Ice::ClFlags. | 11 /// \brief Defines commandline flags parsing of class Ice::ClFlags. |
12 /// | 12 /// |
13 /// This currently relies on llvm::cl to parse. In the future, the minimal build | 13 /// This currently relies on llvm::cl to parse. In the future, the minimal build |
14 /// can have a simpler parser. | 14 /// can have a simpler parser. |
15 /// | 15 /// |
16 //===----------------------------------------------------------------------===// | 16 //===----------------------------------------------------------------------===// |
17 | 17 |
18 #include "IceClFlags.h" | 18 #include "IceClFlags.h" |
19 | 19 |
20 #include "IceClFlagsExtra.h" | 20 #include "IceClFlagsExtra.h" |
21 | 21 |
| 22 #ifdef __clang__ |
22 #pragma clang diagnostic push | 23 #pragma clang diagnostic push |
23 #pragma clang diagnostic ignored "-Wunused-parameter" | 24 #pragma clang diagnostic ignored "-Wunused-parameter" |
| 25 #endif // __clang__ |
| 26 |
24 #include "llvm/Support/CommandLine.h" | 27 #include "llvm/Support/CommandLine.h" |
| 28 |
| 29 #ifdef __clang__ |
25 #pragma clang diagnostic pop | 30 #pragma clang diagnostic pop |
| 31 #endif // __clang__ |
26 | 32 |
27 namespace cl = llvm::cl; | 33 namespace cl = llvm::cl; |
28 | 34 |
29 /// Options which are captured in Ice::ClFlags and propagated. | 35 /// Options which are captured in Ice::ClFlags and propagated. |
30 | 36 |
31 namespace { | 37 namespace { |
32 | 38 |
33 /// Allow error recovery when reading PNaCl bitcode. | 39 /// Allow error recovery when reading PNaCl bitcode. |
34 cl::opt<bool> AllowErrorRecovery( | 40 cl::opt<bool> AllowErrorRecovery( |
35 "allow-pnacl-reader-error-recovery", | 41 "allow-pnacl-reader-error-recovery", |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); | 557 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); |
552 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); | 558 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); |
553 OutFlagsExtra.setAppName(AppName); | 559 OutFlagsExtra.setAppName(AppName); |
554 OutFlagsExtra.setInputFileFormat(InputFileFormat); | 560 OutFlagsExtra.setInputFileFormat(InputFileFormat); |
555 OutFlagsExtra.setIRFilename(IRFilename); | 561 OutFlagsExtra.setIRFilename(IRFilename); |
556 OutFlagsExtra.setLogFilename(LogFilename); | 562 OutFlagsExtra.setLogFilename(LogFilename); |
557 OutFlagsExtra.setOutputFilename(OutputFilename); | 563 OutFlagsExtra.setOutputFilename(OutputFilename); |
558 } | 564 } |
559 | 565 |
560 } // end of namespace Ice | 566 } // end of namespace Ice |
OLD | NEW |