Ignore:
Timestamp:
Jun 2, 2015, 11:51:22 AM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
2b6c1e0
Parents:
6db50d5
Message:

rename CodeGenerator2 -> CodeGenerator?, CodeGenerator? refactoring and output reformatting, fix bug where while loop body label does not print

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/Generate.cc

    r6db50d5 r6c4ff37  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon May 18 23:39:24 2015
    13 // Update Count     : 1
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Tue Jun 02 11:08:44 2015
     13// Update Count     : 4
    1414//
    1515
     
    2222#include "SynTree/Declaration.h"
    2323
    24 #include "CodeGenerator2.h"
     24#include "CodeGenerator.h"
    2525
    2626using namespace std;
     
    2828namespace CodeGen {
    2929        void generate( std::list< Declaration* > translationUnit, std::ostream &os, bool doIntrinsics ) {
    30                 CodeGen::CodeGenerator2 cgv( os );
     30                CodeGen::CodeGenerator cgv( os );
    3131
    3232                for ( std::list<Declaration *>::iterator i = translationUnit.begin(); i != translationUnit.end();  i++ ) {
    3333                        if ( LinkageSpec::isGeneratable( (*i)->get_linkage() ) && (doIntrinsics || ! LinkageSpec::isBuiltin( (*i)->get_linkage() ) ) ) {
    3434                                (*i)->accept(cgv);
    35                                 cgv.shift_left();
    3635                                if ( doSemicolon( *i ) ) {
    3736                                        os << ";";
Note: See TracChangeset for help on using the changeset viewer.