Changeset 6de43b6 for src/main.cc
- Timestamp:
- Nov 2, 2017, 1:37:57 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:
- 000178a
- Parents:
- 4f748c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r4f748c5 r6de43b6 81 81 expraltp = false, 82 82 libcfap = false, 83 preludep = false,84 83 nopreludep = false, 85 84 noprotop = false, … … 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 ); … … 341 340 342 341 CodeTools::fillLocations( translationUnit ); 343 CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp, true, ! nolinemarks );342 CodeGen::generate( translationUnit, *output, ! noprotop, prettycodegenp, true, linemarks ); 344 343 345 344 CodeGen::FixMain::fix( *output, treep ? "../prelude/bootloader.c" : CFA_LIBDIR "/bootloader.c" ); … … 379 378 380 379 void parse_cmdline( int argc, char * argv[], const char *& filename ) { 381 enum { Ast, Bbox, Bresolver, CtorInitFix, DeclStats, Expr, ExprAlt, Grammar, LibCFA, Preamble, 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, }; 382 381 383 382 static struct option long_opts[] = { … … 391 390 { "grammar", no_argument, 0, Grammar }, 392 391 { "libcfa", no_argument, 0, LibCFA }, 393 { "preamble", no_argument, 0, Preamble }, 392 { "line-marks", no_argument, 0, Linemarks }, 393 { "no-line-marks", no_argument, 0, Nolinemarks }, 394 394 { "no-preamble", no_argument, 0, Nopreamble }, 395 395 { "parse", no_argument, 0, Parse }, … … 447 447 libcfap = true; 448 448 break; 449 case 'L': // surpress lines marks 450 nolinemarks = true; 449 case Linemarks: 450 case 'L': // print lines marks 451 linemarks = true; 451 452 break; 452 453 case Nopreamble: … … 454 455 nopreludep = true; 455 456 break; 456 case Preamble:457 case 'N': // read preamble458 preludep = true;457 case Nolinemarks: 458 case 'N': // suppress line marks 459 linemarks = false; 459 460 break; 460 461 case Prototypes:
Note: See TracChangeset
for help on using the changeset viewer.