Changeset 37024fd for src/CodeGen
- Timestamp:
- May 6, 2016, 3:01:28 PM (8 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, with_gc
- Children:
- 03e5d14
- Parents:
- 9a92216
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
r9a92216 r37024fd 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Fri May 06 1 1:39:01201612 // Last Modified On : Fri May 06 14:57:16 2016 13 13 // Update Count : 243 14 14 // … … 75 75 //*** Declarations 76 76 void CodeGenerator::visit( FunctionDecl *functionDecl ) { 77 handleStorageClass( functionDecl );78 if ( functionDecl->get_isInline() ) {79 output << "inline ";80 } // if81 if ( functionDecl->get_isNoreturn() ) {82 output << "_Noreturn ";83 } // if84 output << genType( functionDecl->get_functionType(), mangleName( functionDecl ) );85 86 77 // generalize this 87 78 switch ( functionDecl->get_attribute() ) { 88 79 case FunctionDecl::Constructor: 89 output << " __attribute__ ((constructor))";80 output << "__attribute__ ((constructor)) "; 90 81 break; 91 82 case FunctionDecl::Destructor: 92 output << " __attribute__ ((destructor))";83 output << "__attribute__ ((destructor)) "; 93 84 break; 94 85 default: 95 86 break; 96 87 } 88 handleStorageClass( functionDecl ); 89 if ( functionDecl->get_isInline() ) { 90 output << "inline "; 91 } // if 92 if ( functionDecl->get_isNoreturn() ) { 93 output << "_Noreturn "; 94 } // if 95 output << genType( functionDecl->get_functionType(), mangleName( functionDecl ) ); 97 96 98 97 // how to get this to the Functype?
Note: See TracChangeset
for help on using the changeset viewer.