Changeset e6512c8 for src/CodeGen
- Timestamp:
- Feb 15, 2017, 8:42:12 AM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 32b8144
- Parents:
- 97f65d5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/Generate.cc
r97f65d5 re6512c8 22 22 #include "SynTree/Declaration.h" 23 23 #include "CodeGenerator.h" 24 #include "Tuples/Tuples.h" 24 25 25 26 using namespace std; … … 28 29 void generate( std::list< Declaration* > translationUnit, std::ostream &os, bool doIntrinsics, bool pretty ) { 29 30 CodeGen::CodeGenerator cgv( os, pretty ); 30 31 for ( std::list<Declaration *>::iterator i = translationUnit.begin(); i != translationUnit.end(); i++ ) { 32 if ( LinkageSpec::isGeneratable( (*i)->get_linkage() ) && (doIntrinsics || ! LinkageSpec::isBuiltin( (*i)->get_linkage() ) ) ) { 33 (*i)->accept(cgv); 34 if ( doSemicolon( *i ) ) { 31 for ( auto & dcl : translationUnit ) { 32 if ( LinkageSpec::isGeneratable( dcl->get_linkage() ) && (doIntrinsics || ! LinkageSpec::isBuiltin( dcl->get_linkage() ) ) ) { 33 dcl->accept(cgv); 34 if ( doSemicolon( dcl ) ) { 35 35 os << ";"; 36 36 } // if
Note: See TracChangeset
for help on using the changeset viewer.