Changeset c0aa336 for src/CodeGen/GenType.cc
- Timestamp:
- Feb 6, 2017, 4:19:41 PM (7 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:
- b4d65c7
- Parents:
- a362f97
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/GenType.cc
ra362f97 rc0aa336 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Jul 9 16:43:52 201513 // Update Count : 1312 // Last Modified On : Thu Feb 2 13:53:43 2017 13 // Update Count : 20 14 14 // 15 15 … … 56 56 std::string genType( Type *type, const std::string &baseString, bool mangle ) { 57 57 GenType gt( baseString, mangle ); 58 std::ostringstream os; 59 60 if ( ! type->get_attributes().empty() ) { 61 CodeGenerator cg( os, mangle ); 62 cg.genAttributes( type->get_attributes() ); 63 } // if 64 58 65 type->accept( gt ); 59 return gt.get_typeString();66 return os.str() + gt.get_typeString(); 60 67 } 61 68 … … 99 106 if ( qualifiers.isAtomic ) { 100 107 os << "_Atomic "; 101 } // if102 if ( qualifiers.isAttribute ) {103 os << "__attribute(( )) ";104 108 } // if 105 109 if ( dimension != 0 ) {
Note: See TracChangeset
for help on using the changeset viewer.