Changes in src/main.cc [3746f777:490fb92e]
- File:
-
- 1 edited
-
src/main.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r3746f777 r490fb92e 9 9 // Author : Peter Buhr and Rob Schluntz 10 10 // Created On : Fri May 15 23:12:02 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : T hu Oct 8 18:17:46202013 // Update Count : 63 711 // Last Modified By : Andrew Beach 12 // Last Modified On : Tue May 19 12:03:00 2020 13 // Update Count : 634 14 14 // 15 15 … … 341 341 342 342 if( useNewAST) { 343 if (Stats::Counters::enabled) {344 ast::pass_visitor_stats.avg = Stats::Counters::build<Stats::Counters::AverageCounter<double>>("Average Depth - New");345 ast::pass_visitor_stats.max = Stats::Counters::build<Stats::Counters::MaxCounter<double>>("Max depth - New");346 }347 343 auto transUnit = convert( move( translationUnit ) ); 348 344 PASS( "Resolve", ResolvExpr::resolve( transUnit ) ); … … 462 458 463 459 464 static const char optstring[] = ":c:ghlLmNnpd OAP:S:twW:D:";460 static const char optstring[] = ":c:ghlLmNnpdP:S:twW:D:"; 465 461 466 462 enum { PreludeDir = 128 }; … … 489 485 490 486 static const char * description[] = { 491 "diagnostic color: never, always, or auto.", // -c492 "wait for gdb to attach", // -g493 "print help message", // -h494 "generate libcfa.c", // -l495 "generate line marks", // -L496 "do not replace main", // -m497 "do not generate line marks", // -N498 "do not read prelude", // -n487 "diagnostic color: never, always, or auto.", // -c 488 "wait for gdb to attach", // -g 489 "print help message", // -h 490 "generate libcfa.c", // -l 491 "generate line marks", // -L 492 "do not replace main", // -m 493 "do not generate line marks", // -N 494 "do not read prelude", // -n 499 495 "generate prototypes for prelude functions", // -p 500 " only print deterministic output",// -d501 "Use the old-ast", // -O502 "Use the new-ast", // -A503 "print", // -P496 "don't print output that isn't deterministic", // -d 497 "Use the old-ast", // -O 498 "Use the new-ast", // -A 499 "print", // -P 504 500 "<directory> prelude directory for debug/nodebug", // no flag 505 501 "<option-list> enable profiling information:\n counters,heap,time,all,none", // -S 506 "building cfa standard lib", // -t507 "", // -w508 "", // -W509 "", // -D502 "building cfa standard lib", // -t 503 "", // -w 504 "", // -W 505 "", // -D 510 506 }; // description 511 507
Note:
See TracChangeset
for help on using the changeset viewer.