Changes in src/main.cc [e499381:f57faf6f]
- File:
-
- 1 edited
-
src/main.cc (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
re499381 rf57faf6f 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Fri Feb 19 14:59:00 202113 // Update Count : 6 4312 // Last Modified On : Mon Dec 7 15:29:00 2020 13 // Update Count : 639 14 14 // 15 15 … … 104 104 static void parse( FILE * input, LinkageSpec::Spec linkage, bool shouldExit = false ); 105 105 static void dump( list< Declaration * > & translationUnit, ostream & out = cout ); 106 static void dump( ast::TranslationUnit && transUnit, ostream & out = cout );107 106 108 107 static void backtrace( int start ) { // skip first N stack frames … … 350 349 PASS( "Resolve", ResolvExpr::resolve( transUnit ) ); 351 350 if ( exprp ) { 352 dump( move( transUnit ) ); 351 translationUnit = convert( move( transUnit ) ); 352 dump( translationUnit ); 353 353 return EXIT_SUCCESS; 354 354 } // if … … 492 492 493 493 static const char * description[] = { 494 "diagnostic color: never, always, auto",// -c494 "diagnostic color: never, always, or auto.", // -c 495 495 "wait for gdb to attach", // -g 496 "print translator help message",// -h496 "print help message", // -h 497 497 "generate libcfa.c", // -l 498 498 "generate line marks", // -L … … 500 500 "do not generate line marks", // -N 501 501 "do not read prelude", // -n 502 " do not generate prelude prototypes => prelude not printed",// -p502 "generate prototypes for prelude functions", // -p 503 503 "only print deterministic output", // -d 504 504 "Use the old-ast", // -O … … 506 506 "print", // -P 507 507 "<directory> prelude directory for debug/nodebug", // no flag 508 "<option-list> enable profiling information: counters, heap, time, all,none", // -S508 "<option-list> enable profiling information:\n counters,heap,time,all,none", // -S 509 509 "building cfa standard lib", // -t 510 510 "", // -w … … 732 732 } // dump 733 733 734 static void dump( ast::TranslationUnit && transUnit, ostream & out ) {735 std::list< Declaration * > translationUnit = convert( move( transUnit ) );736 dump( translationUnit, out );737 }738 739 734 // Local Variables: // 740 735 // tab-width: 4 //
Note:
See TracChangeset
for help on using the changeset viewer.