Changes in src/main.cc [6de43b6:bff09c8]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r6de43b6 rbff09c8 10 10 // Author : Richard C. Bilson 11 11 // Created On : Fri May 15 23:12:02 2015 12 // Last Modified By : Peter A. Buhr13 // Last Modified On : Tue Oct 31 12:22:40 201714 // Update Count : 44 512 // Last Modified By : Andrew Beach 13 // Last Modified On : Wed Jul 26 14:38:00 2017 14 // Update Count : 443 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 copyParams 46 47 #include "GenPoly/InstantiateGeneric.h" // for instantiateGeneric 47 48 #include "GenPoly/Lvalue.h" // for convertLvalue … … 93 94 codegenp = false, 94 95 prettycodegenp = false, 95 linemarks = false;96 nolinemarks = false; 96 97 97 98 static void parse_cmdline( int argc, char *argv[], const char *& filename ); … … 238 239 } // if 239 240 241 // OPTPRINT( "Concurrency" ) 242 // Concurrency::applyKeywords( translationUnit ); 243 240 244 // add the assignment statement after the initialization of a type parameter 241 245 OPTPRINT( "validate" ) … … 320 324 OPTPRINT("instantiateGenerics") 321 325 GenPoly::instantiateGeneric( translationUnit ); 326 OPTPRINT( "copyParams" ); 327 GenPoly::copyParams( translationUnit ); 322 328 OPTPRINT( "convertLvalue" ) 323 329 GenPoly::convertLvalue( translationUnit ); … … 340 346 341 347 CodeTools::fillLocations( translationUnit ); 342 CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp, true, linemarks );348 CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp, true, ! nolinemarks ); 343 349 344 350 CodeGen::FixMain::fix( *output, treep ? "../prelude/bootloader.c" : CFA_LIBDIR "/bootloader.c" ); … … 378 384 379 385 void parse_cmdline( int argc, char * argv[], const char *& filename ) { 380 enum { Ast, Bbox, Bresolver, CtorInitFix, DeclStats, Expr, ExprAlt, Grammar, LibCFA, Linemarks, Nolinemarks,Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, TupleExpansion, Validate, };386 enum { Ast, Bbox, Bresolver, CtorInitFix, DeclStats, Expr, ExprAlt, Grammar, LibCFA, Nopreamble, Parse, Prototypes, Resolver, Symbol, Tree, TupleExpansion, Validate, }; 381 387 382 388 static struct option long_opts[] = { … … 390 396 { "grammar", no_argument, 0, Grammar }, 391 397 { "libcfa", no_argument, 0, LibCFA }, 392 { "line-marks", no_argument, 0, Linemarks },393 { "no-line-marks", no_argument, 0, Nolinemarks },394 398 { "no-preamble", no_argument, 0, Nopreamble }, 395 399 { "parse", no_argument, 0, Parse }, … … 407 411 408 412 int c; 409 while ( (c = getopt_long( argc, argv, "abBcCdefglLmn NpqrstTvyzZD:F:", long_opts, &long_index )) != -1 ) {413 while ( (c = getopt_long( argc, argv, "abBcCdefglLmnpqrstTvyzZD:F:", long_opts, &long_index )) != -1 ) { 410 414 switch ( c ) { 411 415 case Ast: … … 447 451 libcfap = true; 448 452 break; 449 case Linemarks: 450 case 'L': // print lines marks 451 linemarks = true; 453 case 'L': // surpress lines marks 454 nolinemarks = true; 452 455 break; 453 456 case Nopreamble: 454 457 case 'n': // do not read preamble 455 458 nopreludep = true; 456 break;457 case Nolinemarks:458 case 'N': // suppress line marks459 linemarks = false;460 459 break; 461 460 case Prototypes: … … 509 508 assertf( false, "Unknown option: %s\n", argv[optind - 1] ); 510 509 } // if 511 #if __GNUC__ < 7512 #else513 __attribute__((fallthrough));514 #endif515 510 default: 516 511 abort();
Note:
See TracChangeset
for help on using the changeset viewer.