Changeset 8941b6b for src/main.cc


Ignore:
Timestamp:
Oct 25, 2023, 6:33:25 PM (8 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
bef4f1a
Parents:
d22bf87
Message:

Direct translation of code generation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    rd22bf87 r8941b6b  
    427427                PASS( "Link-Once", CodeGen::translateLinkOnce, transUnit );
    428428
    429                 translationUnit = convert( std::move( transUnit ) );
    430 
    431429                // Code has been lowered to C, now we can start generation.
    432430
    433                 DUMP( bcodegenp, translationUnit );
     431                DUMP( bcodegenp, std::move( transUnit ) );
    434432
    435433                if ( optind < argc ) {                                                  // any commands after the flags and input file ? => output file name
     
    437435                } // if
    438436
    439                 CodeTools::fillLocations( translationUnit );
    440                 PASS( "Code Gen", CodeGen::generate, translationUnit, *output, ! genproto, prettycodegenp, true, linemarks );
     437                PASS( "Code Gen", CodeGen::generate, transUnit, *output, !genproto, prettycodegenp, true, linemarks, false );
     438
     439                translationUnit = convert( std::move( transUnit ) );
    441440
    442441                CodeGen::FixMain::fix( translationUnit, *output,
Note: See TracChangeset for help on using the changeset viewer.