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

Side by Side Diff: src/IceClFlags.cpp

Issue 1215463014: Modify how textual bitcode is injected into pnacl-sz. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix issues in path set 3. 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
« no previous file with comments | « src/IceBuildDefs.h ('k') | src/IceClFlagsExtra.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /// \file 10 /// \file
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 "reorder-global-variables", 307 "reorder-global-variables",
308 cl::desc("Reorder the layout of global variables in NON TEXT section"), 308 cl::desc("Reorder the layout of global variables in NON TEXT section"),
309 cl::init(false)); 309 cl::init(false));
310 310
311 // Command line option for turning on layout reordering in constant pools. 311 // Command line option for turning on layout reordering in constant pools.
312 cl::opt<bool> ReorderPooledConstants( 312 cl::opt<bool> ReorderPooledConstants(
313 "reorder-pooled-constants", 313 "reorder-pooled-constants",
314 cl::desc("Reorder the layout of constants in constant pools"), 314 cl::desc("Reorder the layout of constants in constant pools"),
315 cl::init(false)); 315 cl::init(false));
316 316
317 // Command line option for accepting textual bitcode.
318 cl::opt<bool> BitcodeAsText(
319 "bitcode-as-text",
320 cl::desc(
321 "Accept textual form of PNaCl bitcode records (i.e. not .ll assembly)"),
322 cl::init(false));
317 } // end of anonymous namespace 323 } // end of anonymous namespace
318 324
319 namespace Ice { 325 namespace Ice {
320 326
321 void ClFlags::parseFlags(int argc, char **argv) { 327 void ClFlags::parseFlags(int argc, char **argv) {
322 cl::ParseCommandLineOptions(argc, argv); 328 cl::ParseCommandLineOptions(argc, argv);
323 AppName = IceString(argv[0]); 329 AppName = IceString(argv[0]);
324 } 330 }
325 331
326 void ClFlags::resetClFlags(ClFlags &OutFlags) { 332 void ClFlags::resetClFlags(ClFlags &OutFlags) {
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 441
436 // Set for global variable reordering option. 442 // Set for global variable reordering option.
437 OutFlags.setShouldReorderGlobalVariables(::ReorderGlobalVariables); 443 OutFlags.setShouldReorderGlobalVariables(::ReorderGlobalVariables);
438 444
439 // Set for pooled constant reordering option. 445 // Set for pooled constant reordering option.
440 OutFlags.setShouldReorderPooledConstants(::ReorderPooledConstants); 446 OutFlags.setShouldReorderPooledConstants(::ReorderPooledConstants);
441 } 447 }
442 448
443 void ClFlags::getParsedClFlagsExtra(ClFlagsExtra &OutFlagsExtra) { 449 void ClFlags::getParsedClFlagsExtra(ClFlagsExtra &OutFlagsExtra) {
444 OutFlagsExtra.setAlwaysExitSuccess(AlwaysExitSuccess); 450 OutFlagsExtra.setAlwaysExitSuccess(AlwaysExitSuccess);
451 OutFlagsExtra.setBitcodeAsText(BitcodeAsText);
445 OutFlagsExtra.setBuildOnRead(BuildOnRead); 452 OutFlagsExtra.setBuildOnRead(BuildOnRead);
446 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); 453 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts);
447 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); 454 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors);
448 OutFlagsExtra.setAppName(AppName); 455 OutFlagsExtra.setAppName(AppName);
449 OutFlagsExtra.setInputFileFormat(InputFileFormat); 456 OutFlagsExtra.setInputFileFormat(InputFileFormat);
450 OutFlagsExtra.setIRFilename(IRFilename); 457 OutFlagsExtra.setIRFilename(IRFilename);
451 OutFlagsExtra.setLogFilename(LogFilename); 458 OutFlagsExtra.setLogFilename(LogFilename);
452 OutFlagsExtra.setOutputFilename(OutputFilename); 459 OutFlagsExtra.setOutputFilename(OutputFilename);
453 } 460 }
454 461
455 } // end of namespace Ice 462 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceBuildDefs.h ('k') | src/IceClFlagsExtra.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698