Changeset 136ccd7 for src/main.cc
- Timestamp:
- Nov 3, 2017, 3:01:31 PM (7 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 4ee36bf0
- Parents:
- 4ee1efb (diff), 760ba67 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r4ee1efb r136ccd7 10 10 // Author : Richard C. Bilson 11 11 // Created On : Fri May 15 23:12:02 2015 12 // Last Modified By : Andrew Beach13 // Last Modified On : Wed Jul 26 14:38:00 201714 // Update Count : 44 312 // Last Modified By : Peter A. Buhr 13 // Last Modified On : Tue Oct 31 12:22:40 2017 14 // Update Count : 445 15 15 // 16 16 … … 93 93 codegenp = false, 94 94 prettycodegenp = false, 95 nolinemarks = false;95 linemarks = false; 96 96 97 97 static void parse_cmdline( int argc, char *argv[], const char *& filename ); … … 340 340 341 341 CodeTools::fillLocations( translationUnit ); 342 CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp, true, ! nolinemarks );342 CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp, true, linemarks ); 343 343 344 344 CodeGen::FixMain::fix( *output, treep ? "../prelude/bootloader.c" : CFA_LIBDIR "/bootloader.c" ); … … 378 378 379 379 void parse_cmdline( int argc, char * argv[], const char *& filename ) { 380 enum { Ast, Bbox, Bresolver, CtorInitFix, DeclStats, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, TupleExpansion, Validate, };380 enum { Ast, Bbox, Bresolver, CtorInitFix, DeclStats, Expr, ExprAlt, Grammar, LibCFA, Linemarks, Nolinemarks, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, TupleExpansion, Validate, }; 381 381 382 382 static struct option long_opts[] = { … … 390 390 { "grammar", no_argument, 0, Grammar }, 391 391 { "libcfa", no_argument, 0, LibCFA }, 392 { "line-marks", no_argument, 0, Linemarks }, 393 { "no-line-marks", no_argument, 0, Nolinemarks }, 392 394 { "no-preamble", no_argument, 0, Nopreamble }, 393 395 { "parse", no_argument, 0, Parse }, … … 405 407 406 408 int c; 407 while ( (c = getopt_long( argc, argv, "abBcCdefglLmn pqrstTvyzZD:F:", long_opts, &long_index )) != -1 ) {409 while ( (c = getopt_long( argc, argv, "abBcCdefglLmnNpqrstTvyzZD:F:", long_opts, &long_index )) != -1 ) { 408 410 switch ( c ) { 409 411 case Ast: … … 445 447 libcfap = true; 446 448 break; 447 case 'L': // surpress lines marks 448 nolinemarks = true; 449 case Linemarks: 450 case 'L': // print lines marks 451 linemarks = true; 449 452 break; 450 453 case Nopreamble: 451 454 case 'n': // do not read preamble 452 455 nopreludep = true; 456 break; 457 case Nolinemarks: 458 case 'N': // suppress line marks 459 linemarks = false; 453 460 break; 454 461 case Prototypes:
Note: See TracChangeset
for help on using the changeset viewer.