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

Side by Side Diff: src/IceClFlags.cpp

Issue 1202253002: Includes module header first. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 5 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
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.
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"
17
16 #include "llvm/Support/CommandLine.h" 18 #include "llvm/Support/CommandLine.h"
17 19
18 #include "IceClFlags.h"
19 #include "IceClFlagsExtra.h" 20 #include "IceClFlagsExtra.h"
Jim Stichnoth 2015/06/23 23:05:04 If following http://llvm.org/docs/CodingStandards.
John 2015/06/23 23:57:09 I don't think so. I think a "private" header is a
20 21
21 namespace cl = llvm::cl; 22 namespace cl = llvm::cl;
22 23
23 // Options which are captured in Ice::ClFlags and propagated. 24 // Options which are captured in Ice::ClFlags and propagated.
24 25
25 namespace { 26 namespace {
26 27
27 cl::opt<bool> AllowErrorRecovery( 28 cl::opt<bool> AllowErrorRecovery(
28 "allow-pnacl-reader-error-recovery", 29 "allow-pnacl-reader-error-recovery",
29 cl::desc("Allow error recovery when reading PNaCl bitcode."), 30 cl::desc("Allow error recovery when reading PNaCl bitcode."),
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); 386 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts);
386 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); 387 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors);
387 OutFlagsExtra.setAppName(AppName); 388 OutFlagsExtra.setAppName(AppName);
388 OutFlagsExtra.setInputFileFormat(InputFileFormat); 389 OutFlagsExtra.setInputFileFormat(InputFileFormat);
389 OutFlagsExtra.setIRFilename(IRFilename); 390 OutFlagsExtra.setIRFilename(IRFilename);
390 OutFlagsExtra.setLogFilename(LogFilename); 391 OutFlagsExtra.setLogFilename(LogFilename);
391 OutFlagsExtra.setOutputFilename(OutputFilename); 392 OutFlagsExtra.setOutputFilename(OutputFilename);
392 } 393 }
393 394
394 } // end of namespace Ice 395 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698