Changeset 58dd019 for src/Parser/TypeData.cc
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypeData.cc
r2ee5426 r58dd019 10 10 // Created On : Sat May 16 15:12:51 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Sep 24 11:14:26201613 // Update Count : 4 1512 // Last Modified On : Tue Dec 13 13:40:33 2016 13 // Update Count : 420 14 14 // 15 15 … … 721 721 } // buildTypeof 722 722 723 Declaration * buildDecl( const TypeData * td, const string &name, DeclarationNode::StorageClass sc, Expression * bitfieldWidth, bool isInline, bool isNoreturn, LinkageSpec::Spec linkage, Initializer * init ) {723 Declaration * buildDecl( const TypeData * td, const string &name, DeclarationNode::StorageClass sc, Expression * bitfieldWidth, bool isInline, bool isNoreturn, LinkageSpec::Spec linkage, ConstantExpr *asmName, Initializer * init ) { 724 724 if ( td->kind == TypeData::Function ) { 725 725 FunctionDecl * decl; … … 743 743 } // for 744 744 buildList( td->function.oldDeclList, decl->get_oldDecls() ); 745 return decl ;745 return decl->set_asmName( asmName ); 746 746 } else if ( td->kind == TypeData::Aggregate ) { 747 747 return buildAggregate( td ); … … 751 751 return buildSymbolic( td, name, sc ); 752 752 } else { 753 return new ObjectDecl( name, sc, linkage, bitfieldWidth, typebuild( td ), init, list< Attribute * >(), isInline, isNoreturn);753 return (new ObjectDecl( name, sc, linkage, bitfieldWidth, typebuild( td ), init, list< Attribute * >(), isInline, isNoreturn ))->set_asmName( asmName ); 754 754 } // if 755 755 return nullptr; … … 769 769 break; 770 770 default: 771 ft->get_returnVals().push_back( dynamic_cast< DeclarationWithType* >( buildDecl( td->base, "", DeclarationNode::NoStorageClass, nullptr, false, false, LinkageSpec::Cforall ) ) );771 ft->get_returnVals().push_back( dynamic_cast< DeclarationWithType* >( buildDecl( td->base, "", DeclarationNode::NoStorageClass, nullptr, false, false, LinkageSpec::Cforall, nullptr ) ) ); 772 772 } // switch 773 773 } else {
Note: See TracChangeset
for help on using the changeset viewer.