Changeset a32b204 for translator/CodeGen
- Timestamp:
- May 17, 2015, 1:19:35 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, 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:
- 0dd3a2f
- Parents:
- b87a5ed
- Location:
- translator/CodeGen
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/CodeGen/CodeGenerator2.cc
rb87a5ed ra32b204 553 553 before << "do" ; 554 554 else { 555 before << "while (" ;555 before << "while (" ; 556 556 whileStmt->get_condition()->accept(*this ); 557 557 after += ")"; … … 565 565 566 566 if ( whileStmt->get_isDoWhile() ) { 567 before << " while (" ;567 before << " while (" ; 568 568 whileStmt->get_condition()->accept(*this ); 569 569 after += ");"; -
translator/CodeGen/CodeGenerator2.h
rb87a5ed ra32b204 97 97 inline bool doSemicolon( Declaration* decl ) { 98 98 if ( FunctionDecl* func = dynamic_cast< FunctionDecl* >( decl ) ) { 99 return ! func->get_statements();99 return ! func->get_statements(); 100 100 } 101 101 return true; -
translator/CodeGen/FixNames.cc
rb87a5ed ra32b204 32 32 fixDWT( DeclarationWithType *dwt ) 33 33 { 34 if ( dwt->get_name() != "" ) {35 if ( LinkageSpec::isDecoratable( dwt->get_linkage() ) ) {34 if ( dwt->get_name() != "" ) { 35 if ( LinkageSpec::isDecoratable( dwt->get_linkage() ) ) { 36 36 dwt->set_mangleName( SymTab::Mangler::mangle( dwt ) ); 37 37 } -
translator/CodeGen/OperatorTable.cc
rb87a5ed ra32b204 64 64 initialize() 65 65 { 66 for ( int i = 0; i < numOps; ++i ) {66 for ( int i = 0; i < numOps; ++i ) { 67 67 table[ tableValues[i].inputName ] = tableValues[i]; 68 68 } … … 75 75 { 76 76 static bool init = false; 77 if ( !init ) {77 if ( ! init ) { 78 78 initialize(); 79 79 } 80 80 std::map< std::string, OperatorInfo >::const_iterator i = table.find( funcName ); 81 if ( i == table.end() ) {81 if ( i == table.end() ) { 82 82 return false; 83 83 } else {
Note: See TracChangeset
for help on using the changeset viewer.