Changeset 8d182b1 for src/main.cc
- Timestamp:
- Nov 14, 2023, 12:19:09 PM (23 months ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cc
rdf8ba61a r8d182b1 29 29 #include <string> // for char_traits, operator<< 30 30 31 #include "AST/Convert.hpp"32 31 #include "AST/Pass.hpp" // for pass_visitor_stats 33 32 #include "AST/Print.hpp" // for printAll … … 40 39 #include "CodeGen/Generate.h" // for generate 41 40 #include "CodeGen/LinkOnce.h" // for translateLinkOnce 42 #include "CodeTools/TrackLoc.h" // for fillLocations43 41 #include "Common/CodeLocationTools.hpp" // for forceFillCodeLocations 44 42 #include "Common/DeclStats.hpp" // for printDeclStats … … 66 64 #include "ResolvExpr/EraseWith.hpp" // for eraseWith 67 65 #include "ResolvExpr/Resolver.h" // for resolve 68 #include "SynTree/LinkageSpec.h" // for Spec, Cforall, Intrinsic69 #include "SynTree/Declaration.h" // for Declaration70 66 #include "Tuples/Tuples.h" // for expandMemberTuples, expan... 71 67 #include "Validate/Autogen.hpp" // for autogenerateRoutines … … 101 97 ast::pass_visitor_stats.max = build<MaxCounter<double>>( "Max Depth", pass ); 102 98 } 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 }108 99 } 109 100 … … 259 250 260 251 parse_cmdline( argc, argv ); // process command-line arguments 261 CodeGen::FixMain::setReplaceMain( !nomainp );262 252 263 253 if ( waiting_for_gdb ) { … … 403 393 PASS( "Translate Tries", ControlStruct::translateTries, transUnit ); 404 394 PASS( "Gen Waitfor", Concurrency::generateWaitFor, transUnit ); 395 PASS( "Fix Main Linkage", CodeGen::fixMainLinkage, transUnit, !nomainp ); 405 396 406 397 // Needs to happen before tuple types are expanded. … … 430 421 431 422 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 434 425 if ( output != &cout ) { 435 426 delete output;
Note:
See TracChangeset
for help on using the changeset viewer.