Changes in src/main.cc [9f5a19fa:68fe946e]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
r9f5a19fa r68fe946e 9 9 // Author : Peter Buhr and Rob Schluntz 10 10 // Created On : Fri May 15 23:12:02 2015 11 // Last Modified By : Henry Xue12 // Last Modified On : Mon Aug 23 15:42:08202113 // Update Count : 65 011 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed Oct 8 11:22:00 2021 13 // Update Count : 651 14 14 // 15 15 … … 43 43 #include "Common/CodeLocationTools.hpp" // for forceFillCodeLocations 44 44 #include "Common/CompilerError.h" // for CompilerError 45 #include "Common/DeclStats.hpp" 45 46 #include "Common/Stats.h" 46 47 #include "Common/PassVisitor.h" … … 341 342 } // if 342 343 343 if ( declstatsp ) {344 CodeTools::printDeclStats( translationUnit );345 deleteAll( translationUnit );346 return EXIT_SUCCESS;347 } // if348 349 if ( bresolvep ) {350 dump( translationUnit );351 return EXIT_SUCCESS;352 } // if353 354 344 CodeTools::fillLocations( translationUnit ); 355 356 if ( resolvprotop ) {357 CodeTools::dumpAsResolvProto( translationUnit );358 return EXIT_SUCCESS;359 } // if360 345 361 346 if( useNewAST ) { … … 366 351 auto transUnit = convert( move( translationUnit ) ); 367 352 353 forceFillCodeLocations( transUnit ); 354 368 355 PASS( "Expand Member Tuples" , Tuples::expandMemberTuples( transUnit ) ); 369 356 357 // LibCfa::makeLibCfa 358 359 if ( declstatsp ) { 360 printDeclStats( transUnit ); 361 return EXIT_SUCCESS; 362 } // if 363 364 if ( bresolvep ) { 365 dump( move( transUnit ) ); 366 return EXIT_SUCCESS; 367 } // if 368 369 if ( resolvprotop ) { 370 // TODO: Better error message. 371 assert(false); 372 return EXIT_SUCCESS; 373 } // if 374 370 375 PASS( "Resolve", ResolvExpr::resolve( transUnit ) ); 371 376 if ( exprp ) { … … 380 385 } else { 381 386 PASS( "Expand Member Tuples" , Tuples::expandMemberTuples( translationUnit ) ); 387 388 // LibCfa::makeLibCfa 389 390 if ( declstatsp ) { 391 CodeTools::printDeclStats( translationUnit ); 392 deleteAll( translationUnit ); 393 return EXIT_SUCCESS; 394 } // if 395 396 if ( bresolvep ) { 397 dump( translationUnit ); 398 return EXIT_SUCCESS; 399 } // if 400 401 CodeTools::fillLocations( translationUnit ); 402 403 if ( resolvprotop ) { 404 CodeTools::dumpAsResolvProto( translationUnit ); 405 return EXIT_SUCCESS; 406 } // if 382 407 383 408 PASS( "Resolve", ResolvExpr::resolve( translationUnit ) );
Note: See TracChangeset
for help on using the changeset viewer.