Changeset 6c4ff37 for src/CodeGen/Generate.cc
- Timestamp:
- Jun 2, 2015, 11:51:22 AM (8 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/Generate.cc
r6db50d5 r6c4ff37 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Mon May 18 23:39:24 201513 // Update Count : 111 // Last Modified By : Rob Schluntz 12 // Last Modified On : Tue Jun 02 11:08:44 2015 13 // Update Count : 4 14 14 // 15 15 … … 22 22 #include "SynTree/Declaration.h" 23 23 24 #include "CodeGenerator 2.h"24 #include "CodeGenerator.h" 25 25 26 26 using namespace std; … … 28 28 namespace CodeGen { 29 29 void generate( std::list< Declaration* > translationUnit, std::ostream &os, bool doIntrinsics ) { 30 CodeGen::CodeGenerator 2cgv( os );30 CodeGen::CodeGenerator cgv( os ); 31 31 32 32 for ( std::list<Declaration *>::iterator i = translationUnit.begin(); i != translationUnit.end(); i++ ) { 33 33 if ( LinkageSpec::isGeneratable( (*i)->get_linkage() ) && (doIntrinsics || ! LinkageSpec::isBuiltin( (*i)->get_linkage() ) ) ) { 34 34 (*i)->accept(cgv); 35 cgv.shift_left();36 35 if ( doSemicolon( *i ) ) { 37 36 os << ";";
Note: See TracChangeset
for help on using the changeset viewer.