Changeset 58dd019 for src/CodeGen
- Timestamp:
- Dec 13, 2016, 3:14:59 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 04c8bba
- Parents:
- 2ee5426
- Location:
- src/CodeGen
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cc
r2ee5426 r58dd019 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T hu Aug 4 13:35:30201613 // Update Count : 3 5212 // Last Modified On : Tue Dec 13 14:51:27 2016 13 // Update Count : 362 14 14 // 15 15 … … 57 57 if ( decl->get_extension() ) { 58 58 output << "__extension__ "; 59 } // if 60 } // extension 61 62 void CodeGenerator::asmName( DeclarationWithType * decl ) { 63 if ( ConstantExpr * asmName = decl->get_asmName() ) { 64 output << " asm ( " << asmName->get_constant()->get_value() << " )"; 59 65 } // if 60 66 } // extension … … 141 147 } // if 142 148 149 asmName( functionDecl ); 150 143 151 // acceptAll( functionDecl->get_oldDecls(), *this ); 144 152 if ( functionDecl->get_statements() ) { … … 153 161 handleStorageClass( objectDecl ); 154 162 output << genType( objectDecl->get_type(), mangleName( objectDecl ) ); 163 164 asmName( objectDecl ); 155 165 156 166 if ( objectDecl->get_init() ) { -
src/CodeGen/CodeGenerator.h
r2ee5426 r58dd019 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T hu Aug 4 13:37:07201613 // Update Count : 3 812 // Last Modified On : Tue Dec 13 13:51:53 2016 13 // Update Count : 39 14 14 // 15 15 … … 107 107 }; 108 108 109 void asmName( DeclarationWithType *decl ); 110 109 111 void extension( Expression *expr ); 110 112 void extension( Declaration *decl ); -
src/CodeGen/OperatorTable.cc
r2ee5426 r58dd019 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Rob Schluntz12 // Last Modified On : T hu Apr 14 16:48:27201613 // Update Count : 911 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Dec 13 14:33:05 2016 13 // Update Count : 10 14 14 // 15 15 … … 21 21 const OperatorInfo tableValues[] = { 22 22 { "?[?]", "", "_operator_index", OT_INDEX }, 23 { "?{}", "=", 23 { "?{}", "=", "_constructor", OT_CTOR }, 24 24 { "^?{}", "", "_destructor", OT_DTOR }, 25 25 { "?()", "", "_operator_call", OT_CALL },
Note: See TracChangeset
for help on using the changeset viewer.