Changeset 46adb83 for src/SymTab
- Timestamp:
- Aug 8, 2017, 8:09:05 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:
- 1744e6d
- Parents:
- 533804b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Autogen.cc
r533804b r46adb83 17 17 #include <iterator> 18 18 #include "SynTree/Visitor.h" 19 #include "SynTree/Attribute.h" 19 20 #include "SynTree/Type.h" 20 21 #include "SynTree/Statement.h" … … 275 276 // void ?{}(E *, E); 276 277 FunctionType *copyCtorType = genCopyType( refType->clone() ); 278 279 // add unused attribute to parameters of default constructor and destructor 280 ctorType->get_parameters().front()->get_attributes().push_back( new Attribute( "unused" ) ); 281 dtorType->get_parameters().front()->get_attributes().push_back( new Attribute( "unused" ) ); 277 282 278 283 // xxx - should we also generate void ?{}(E *, int) and E ?{}(E *, E)? … … 516 521 cloneAll( typeParams, assignType->get_forall() ); 517 522 523 // add unused attribute to parameters of default constructor and destructor 524 ctorType->get_parameters().front()->get_attributes().push_back( new Attribute( "unused" ) ); 525 dtorType->get_parameters().front()->get_attributes().push_back( new Attribute( "unused" ) ); 526 518 527 // Routines at global scope marked "static" to prevent multiple definitions is separate translation units 519 528 // because each unit generates copies of the default routines for each aggregate.
Note:
See TracChangeset
for help on using the changeset viewer.