Changeset a758169
- Timestamp:
- Jul 17, 2024, 1:16:36 PM (4 weeks ago)
- Branches:
- master
- Children:
- 6804f38
- Parents:
- 0097d08
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cpp
r0097d08 ra758169 113 113 #define DUMP( cond, unit ) \ 114 114 if ( cond ) { \ 115 dump( unit);\115 dump( std::move( unit ) ); \ 116 116 return EXIT_SUCCESS; \ 117 117 } … … 279 279 // Read to gcc builtins, if not generating the cfa library 280 280 FILE * gcc_builtins = fopen( (PreludeDirector + "/gcc-builtins.cfa").c_str(), "r" ); 281 assertf( gcc_builtins, "cannot open gcc-builtins.cf \n" );281 assertf( gcc_builtins, "cannot open gcc-builtins.cfa\n" ); 282 282 parse( gcc_builtins, ast::Linkage::Compiler ); 283 283 284 284 // read the extra prelude in, if not generating the cfa library 285 285 FILE * extras = fopen( (PreludeDirector + "/extras.cfa").c_str(), "r" ); 286 assertf( extras, "cannot open extras.cf \n" );286 assertf( extras, "cannot open extras.cfa\n" ); 287 287 parse( extras, ast::Linkage::BuiltinC ); 288 288 if ( ! libcfap ) { … … 294 294 // Read to cfa builtins, if not generating the cfa library 295 295 FILE * builtins = fopen( (PreludeDirector + "/builtins.cfa").c_str(), "r" ); 296 assertf( builtins, "cannot open builtins.cf \n" );296 assertf( builtins, "cannot open builtins.cfa\n" ); 297 297 parse( builtins, ast::Linkage::BuiltinCFA ); 298 298 } // if … … 303 303 transUnit = buildUnit(); 304 304 305 DUMP( astp, std::move( transUnit ));305 DUMP( astp, transUnit ); 306 306 307 307 Stats::Time::StopBlock(); … … 310 310 311 311 PASS( "Translate Exception Declarations", ControlStruct::translateExcept, transUnit ); 312 DUMP( exdeclp, std::move( transUnit ));312 DUMP( exdeclp, transUnit ); 313 313 PASS( "Verify Ctor, Dtor & Assign", Validate::verifyCtorDtorAssign, transUnit ); 314 314 PASS( "Replace Typedefs", Validate::replaceTypedef, transUnit ); … … 353 353 } // if 354 354 355 DUMP( validp, std::move( transUnit ));355 DUMP( validp, transUnit ); 356 356 357 357 PASS( "Translate Throws", ControlStruct::translateThrows, transUnit ); … … 372 372 } // if 373 373 374 DUMP( bresolvep, std::move( transUnit ));374 DUMP( bresolvep, transUnit ); 375 375 376 376 if ( resolvprotop ) { … … 380 380 381 381 PASS( "Resolve", ResolvExpr::resolve, transUnit ); 382 DUMP( exprp, std::move( transUnit ));382 DUMP( exprp, transUnit ); 383 383 PASS( "Fix Init", InitTweak::fix, transUnit, buildingLibrary() ); // Here 384 384 PASS( "Erase With", ResolvExpr::eraseWith, transUnit ); 385 385 386 386 // fix ObjectDecl - replaces ConstructorInit nodes 387 DUMP( ctorinitp, std::move( transUnit ));387 DUMP( ctorinitp, transUnit ); 388 388 389 389 // Currently not working due to unresolved issues with UniqueExpr … … 398 398 399 399 PASS( "Expand Tuples", Tuples::expandTuples, transUnit ); 400 DUMP( tuplep, std::move( transUnit ));400 DUMP( tuplep, transUnit ); 401 401 402 402 // Must come after Translate Tries. … … 404 404 405 405 PASS( "Instantiate Generics", GenPoly::instantiateGeneric, transUnit ); 406 DUMP( genericsp, std::move( transUnit ));406 DUMP( genericsp, transUnit ); 407 407 408 408 PASS( "Convert L-Value", GenPoly::convertLvalue, transUnit ); 409 DUMP( bboxp, std::move( transUnit ));409 DUMP( bboxp, transUnit ); 410 410 PASS( "Box", GenPoly::box, transUnit ); 411 411 PASS( "Link-Once", CodeGen::translateLinkOnce, transUnit ); … … 413 413 // Code has been lowered to C, now we can start generation. 414 414 415 DUMP( bcodegenp, std::move( transUnit ));415 DUMP( bcodegenp, transUnit ); 416 416 417 417 if ( optind < argc ) { // any commands after the flags and input file ? => output file name
Note: See TracChangeset
for help on using the changeset viewer.