Changes in src/CodeGen/CodeGenerator.cc [dd020c0:3a5131ed]
- File:
-
- 1 edited
-
src/CodeGen/CodeGenerator.cc (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
rdd020c0 r3a5131ed 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 3 21:18:47201713 // Update Count : 4 6512 // Last Modified On : Thu Feb 16 14:56:29 2017 13 // Update Count : 418 14 14 // 15 15 … … 134 134 135 135 handleStorageClass( functionDecl ); 136 DeclarationNode::print_FuncSpec( output, functionDecl->get_funcSpec() ); 137 136 if ( functionDecl->get_isInline() ) { 137 output << "inline "; 138 } // if 139 if ( functionDecl->get_isNoreturn() ) { 140 output << "_Noreturn "; 141 } // if 138 142 output << genType( functionDecl->get_functionType(), mangleName( functionDecl ), pretty ); 139 143 … … 831 835 } 832 836 837 833 838 void CodeGenerator::visit( ReturnStmt * returnStmt ) { 834 839 output << "return "; … … 894 899 } 895 900 896 void CodeGenerator::handleStorageClass( Declaration WithType* decl ) {901 void CodeGenerator::handleStorageClass( Declaration * decl ) { 897 902 switch ( decl->get_storageClass() ) { 898 //output << DeclarationNode::storageClassNames[decl->get_storageClass()] << ' ';899 903 case DeclarationNode::Extern: 900 904 output << "extern "; … … 909 913 output << "register "; 910 914 break; 915 case DeclarationNode::Inline: 916 output << "inline "; 917 break; 918 case DeclarationNode::Fortran: 919 output << "fortran "; 920 break; 921 case DeclarationNode::Noreturn: 922 output << "_Noreturn "; 923 break; 911 924 case DeclarationNode::Threadlocal: 912 output << "_Thread_local ";913 break;925 output << "_Thread_local "; 926 break; 914 927 case DeclarationNode::NoStorageClass: 915 928 break; 916 default:917 assert( false );918 929 } // switch 919 } // CodeGenerator::handleStorageClass930 } 920 931 921 932 std::string genName( DeclarationWithType * decl ) {
Note:
See TracChangeset
for help on using the changeset viewer.