Changeset f38c8d9 for src/CodeGen
- Timestamp:
- May 24, 2015, 8:49:30 PM (10 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:
- 1f2061de
- Parents:
- 79551331
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator2.cc
r79551331 rf38c8d9 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu May 21 17:13:35201513 // Update Count : 712 // Last Modified On : Sun May 24 20:43:16 2015 13 // Update Count : 11 14 14 // 15 15 … … 40 40 41 41 CodeGenerator2::CodeGenerator2( std::ostream &os, std::string init, int indent, bool infunp ) 42 : cur_indent( indent ), insideFunction( infunp ), before( os ) {42 : cur_indent( indent ), insideFunction( infunp ), before( os ) { 43 43 //before << std::string( init ); 44 44 } 45 45 46 46 CodeGenerator2::CodeGenerator2( std::ostream &os, char *init, int indent, bool infunp ) 47 : cur_indent( indent ), insideFunction( infunp ), before( os ) {47 : cur_indent( indent ), insideFunction( infunp ), before( os ) { 48 48 //before << std::string( init ); 49 49 } … … 60 60 void CodeGenerator2::visit( FunctionDecl *functionDecl ) { 61 61 handleStorageClass( functionDecl ); 62 if ( functionDecl->get_isInline() ) { 63 before << "inline "; 64 } // if 62 65 before << genType( functionDecl->get_functionType(), mangleName( functionDecl ) ); 63 66 … … 656 659 before << "register "; 657 660 break; 661 case Declaration::Inline: 662 // handled as special via isInline flag (FIX) 663 break; 664 case Declaration::Fortran: 665 // not handled 666 break; 658 667 } // switch 659 668 }
Note: See TracChangeset
for help on using the changeset viewer.