Changeset 8d182b1 for src/main.cc


Ignore:
Timestamp:
Nov 14, 2023, 12:19:09 PM (23 months ago)
Author:
caparson <caparson@…>
Branches:
master
Children:
1ccae59, 89a8bab
Parents:
df8ba61a (diff), 5625427 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    rdf8ba61a r8d182b1  
    2929#include <string>                           // for char_traits, operator<<
    3030
    31 #include "AST/Convert.hpp"
    3231#include "AST/Pass.hpp"                     // for pass_visitor_stats
    3332#include "AST/Print.hpp"                    // for printAll
     
    4039#include "CodeGen/Generate.h"               // for generate
    4140#include "CodeGen/LinkOnce.h"               // for translateLinkOnce
    42 #include "CodeTools/TrackLoc.h"             // for fillLocations
    4341#include "Common/CodeLocationTools.hpp"     // for forceFillCodeLocations
    4442#include "Common/DeclStats.hpp"             // for printDeclStats
     
    6664#include "ResolvExpr/EraseWith.hpp"         // for eraseWith
    6765#include "ResolvExpr/Resolver.h"            // for resolve
    68 #include "SynTree/LinkageSpec.h"            // for Spec, Cforall, Intrinsic
    69 #include "SynTree/Declaration.h"            // for Declaration
    7066#include "Tuples/Tuples.h"                  // for expandMemberTuples, expan...
    7167#include "Validate/Autogen.hpp"             // for autogenerateRoutines
     
    10197                ast::pass_visitor_stats.max = build<MaxCounter<double>>( "Max Depth", pass );
    10298        }
    103         {
    104                 static auto group = build<CounterGroup>( "Syntax Node" );
    105                 auto pass = build<CounterGroup>( name, group );
    106                 BaseSyntaxNode::new_nodes = build<SimpleCounter>( "Allocs", pass );
    107         }
    10899}
    109100
     
    259250
    260251        parse_cmdline( argc, argv );                                            // process command-line arguments
    261         CodeGen::FixMain::setReplaceMain( !nomainp );
    262252
    263253        if ( waiting_for_gdb ) {
     
    403393                PASS( "Translate Tries", ControlStruct::translateTries, transUnit );
    404394                PASS( "Gen Waitfor", Concurrency::generateWaitFor, transUnit );
     395                PASS( "Fix Main Linkage", CodeGen::fixMainLinkage, transUnit, !nomainp );
    405396
    406397                // Needs to happen before tuple types are expanded.
     
    430421
    431422                PASS( "Code Gen", CodeGen::generate, transUnit, *output, !genproto, prettycodegenp, true, linemarks, false );
    432 
    433                 CodeGen::FixMain::fix( transUnit, *output, (PreludeDirector + "/bootloader.c").c_str() );
     423                CodeGen::fixMainInvoke( transUnit, *output, (PreludeDirector + "/bootloader.c").c_str() );
     424
    434425                if ( output != &cout ) {
    435426                        delete output;
Note: See TracChangeset for help on using the changeset viewer.