Changeset 5546eee4 for src/CodeGen


Ignore:
Timestamp:
Dec 16, 2023, 1:01:44 AM (6 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
b7898ac
Parents:
0fa0201d (diff), 69ab896 (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

Location:
src/CodeGen
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cpp

    r0fa0201d r5546eee4  
    10261026        output << " ) ";
    10271027
    1028         output << "{";
     1028        output << "{" << endl;
    10291029        ++indent;
    10301030        for ( auto node : stmt->cases ) {
  • src/CodeGen/FixMain.cc

    r0fa0201d r5546eee4  
    1111// Last Modified By :
    1212// Last Modified On :
    13 // Update Count     : 0
     13// Update Count     : 1
    1414//
    1515
     
    3939                if ( isMain( decl ) ) {
    4040                        if ( main_declaration ) {
    41                                 SemanticError( decl, "Multiple definition of main routine\n" );
     41                                SemanticError( decl, "Multiple definition of main routine" );
    4242                        }
    4343                        main_declaration = decl;
  • src/CodeGen/FixNames.cc

    r0fa0201d r5546eee4  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Andrew Beach
    12 // Last Modified On : Wed Jul 20 11:49:00 2022
    13 // Update Count     : 24
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Thu Dec 14 16:16:51 2023
     13// Update Count     : 25
    1414//
    1515
     
    5757                        int nargs = mutDecl->params.size();
    5858                        if ( 0 != nargs && 2 != nargs && 3 != nargs ) {
    59                                 SemanticError( functionDecl, "Main expected to have 0, 2 or 3 arguments\n" );
     59                                SemanticError( functionDecl, "Main expected to have 0, 2 or 3 arguments" );
    6060                        }
    6161                        ast::chain_mutate( mutDecl->stmts )->kids.push_back(
Note: See TracChangeset for help on using the changeset viewer.