- Timestamp:
- Feb 6, 2018, 4:41:32 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 86c934a
- Parents:
- bf7b6015
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
rbf7b6015 r53d3ab4b 80 80 exprp = false, 81 81 expraltp = false, 82 genericsp = false, 82 83 libcfap = false, 83 84 nopreludep = false, … … 320 321 OPTPRINT("instantiateGenerics") 321 322 GenPoly::instantiateGeneric( translationUnit ); 323 if ( genericsp ) { 324 dump( translationUnit ); 325 return 0; 326 } 322 327 OPTPRINT( "convertLvalue" ) 323 328 GenPoly::convertLvalue( translationUnit ); 324 329 330 325 331 if ( bboxp ) { 326 332 dump( translationUnit ); … … 340 346 341 347 CodeTools::fillLocations( translationUnit ); 348 OPTPRINT( "codegen" ) 342 349 CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp, true, linemarks ); 343 350 344 351 CodeGen::FixMain::fix( *output, treep ? "../prelude/bootloader.c" : CFA_LIBDIR "/bootloader.c" ); 352 OPTPRINT( "end" ) 345 353 346 354 if ( output != &cout ) { … … 407 415 408 416 int c; 409 while ( (c = getopt_long( argc, argv, "abBcCdefg lLmnNpqrstTvyzZD:F:", long_opts, &long_index )) != -1 ) {417 while ( (c = getopt_long( argc, argv, "abBcCdefgGlLmnNpqrstTvyzZD:F:", long_opts, &long_index )) != -1 ) { 410 418 switch ( c ) { 411 419 case Ast: … … 442 450 case 'g': // bison debugging info (grammar rules) 443 451 yydebug = true; 452 break; 453 case 'G': // dump AST after instantiate generics 454 genericsp = true; 444 455 break; 445 456 case LibCFA:
Note: See TracChangeset
for help on using the changeset viewer.