Changeset bd9bcc8 for src/CodeGen
- Timestamp:
- Feb 20, 2017, 12:05:49 PM (9 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:
- 3bff885
- Parents:
- facc44f (diff), d150ea2 (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. - Location:
- src/CodeGen
- Files:
-
- 2 edited
-
CodeGenerator.cc (modified) (2 diffs)
-
Generate.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
rfacc44f rbd9bcc8 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 9 15:05:18201713 // Update Count : 41 712 // Last Modified On : Thu Feb 16 14:56:29 2017 13 // Update Count : 418 14 14 // 15 15 … … 141 141 } // if 142 142 output << genType( functionDecl->get_functionType(), mangleName( functionDecl ), pretty ); 143 144 // how to get this to the Functype?145 std::list< Declaration * > olds = functionDecl->get_oldDecls();146 if ( ! olds.empty() ) {147 output << " /* function has old declaration */";148 } // if149 143 150 144 asmName( functionDecl ); -
src/CodeGen/Generate.cc
rfacc44f rbd9bcc8 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.