Changes in src/main.cc [bff09c8:6de43b6]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
rbff09c8 r6de43b6 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 … … 44 44 #include "ControlStruct/Mutate.h" // for mutate 45 45 #include "GenPoly/Box.h" // for box 46 #include "GenPoly/CopyParams.h" // for copyParams47 46 #include "GenPoly/InstantiateGeneric.h" // for instantiateGeneric 48 47 #include "GenPoly/Lvalue.h" // for convertLvalue … … 94 93 codegenp = false, 95 94 prettycodegenp = false, 96 nolinemarks = false;95 linemarks = false; 97 96 98 97 static void parse_cmdline( int argc, char *argv[], const char *& filename ); … … 239 238 } // if 240 239 241 // OPTPRINT( "Concurrency" )242 // Concurrency::applyKeywords( translationUnit );243 244 240 // add the assignment statement after the initialization of a type parameter 245 241 OPTPRINT( "validate" ) … … 324 320 OPTPRINT("instantiateGenerics") 325 321 GenPoly::instantiateGeneric( translationUnit ); 326 OPTPRINT( "copyParams" );327 GenPoly::copyParams( translationUnit );328 322 OPTPRINT( "convertLvalue" ) 329 323 GenPoly::convertLvalue( translationUnit ); … … 346 340 347 341 CodeTools::fillLocations( translationUnit ); 348 CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp, true, ! nolinemarks );342 CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp, true, linemarks ); 349 343 350 344 CodeGen::FixMain::fix( *output, treep ? "../prelude/bootloader.c" : CFA_LIBDIR "/bootloader.c" ); … … 384 378 385 379 void parse_cmdline( int argc, char * argv[], const char *& filename ) { 386 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, }; 387 381 388 382 static struct option long_opts[] = { … … 396 390 { "grammar", no_argument, 0, Grammar }, 397 391 { "libcfa", no_argument, 0, LibCFA }, 392 { "line-marks", no_argument, 0, Linemarks }, 393 { "no-line-marks", no_argument, 0, Nolinemarks }, 398 394 { "no-preamble", no_argument, 0, Nopreamble }, 399 395 { "parse", no_argument, 0, Parse }, … … 411 407 412 408 int c; 413 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 ) { 414 410 switch ( c ) { 415 411 case Ast: … … 451 447 libcfap = true; 452 448 break; 453 case 'L': // surpress lines marks 454 nolinemarks = true; 449 case Linemarks: 450 case 'L': // print lines marks 451 linemarks = true; 455 452 break; 456 453 case Nopreamble: 457 454 case 'n': // do not read preamble 458 455 nopreludep = true; 456 break; 457 case Nolinemarks: 458 case 'N': // suppress line marks 459 linemarks = false; 459 460 break; 460 461 case Prototypes: … … 508 509 assertf( false, "Unknown option: %s\n", argv[optind - 1] ); 509 510 } // if 511 #if __GNUC__ < 7 512 #else 513 __attribute__((fallthrough)); 514 #endif 510 515 default: 511 516 abort();
Note:
See TracChangeset
for help on using the changeset viewer.