Changeset f38c8d9
- Timestamp:
- May 24, 2015, 8:49:30 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:
- 1f2061de
- Parents:
- 79551331
- Files:
-
- 1 deleted
- 2 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 } -
src/SynTree/Declaration.h
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 : Mon May 18 08:46:25201513 // Update Count : 212 // Last Modified On : Thu May 21 23:43:43 2015 13 // Update Count : 3 14 14 // 15 15 … … 123 123 CompoundStmt *get_statements() const { return statements; } 124 124 void set_statements( CompoundStmt *newValue ) { statements = newValue; } 125 //bool get_isInline() const { return isInline; }125 bool get_isInline() const { return isInline; } 126 126 // void set_isInline( bool newValue ) { isInline = newValue; } 127 127 std::list< std::string >& get_oldIdents() { return oldIdents; }
Note: See TracChangeset
for help on using the changeset viewer.