Changeset ac633d0
- Timestamp:
- Mar 9, 2016, 10:37:29 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- d1caa6c
- Parents:
- bed4c63e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
rbed4c63e rac633d0 135 135 InstantiationMap() { beginScope(); } 136 136 137 // private:138 137 /// Gets the value for the concrete instantiation of this type, assuming it has already been instantiated in the current scope. 139 138 /// Returns NULL on none such. … … 153 152 return 0; 154 153 } 155 public: 156 // StructDecl* lookup( StructInstType *inst, const std::list< TypeExpr* > &typeSubs ) { return (StructDecl*)lookup( inst->get_baseStruct(), typeSubs ); } 157 // UnionDecl* lookup( UnionInstType *inst, const std::list< TypeExpr* > &typeSubs ) { return (UnionDecl*)lookup( inst->get_baseUnion(), typeSubs ); } 158 159 // private: 154 160 155 /// Adds a value for a concrete type to the current scope 161 156 void insert( AggregateDecl *generic, const std::list< TypeExpr* > ¶ms, Value *value ) { … … 163 158 scopes.back()[generic].push_back( Instantiation( key, value ) ); 164 159 } 165 // public:166 // void insert( StructInstType *inst, const std::list< TypeExpr* > &typeSubs, StructDecl *decl ) { insert( inst->get_baseStruct(), typeSubs, decl ); }167 // void insert( UnionInstType *inst, const std::list< TypeExpr* > &typeSubs, UnionDecl *decl ) { insert( inst->get_baseUnion(), typeSubs, decl ); }168 160 }; 169 161 … … 348 340 mutateTranslationUnit/*All*/( translationUnit, pass1 ); 349 341 mutateTranslationUnit/*All*/( translationUnit, pass2 ); 350 // instantiateGeneric( translationUnit );351 342 instantiator.mutateDeclarationList( translationUnit ); 352 343 mutateTranslationUnit/*All*/( translationUnit, memberFixer ); … … 1587 1578 ObjectDecl newPtr( "", DeclarationNode::NoStorageClass, LinkageSpec::C, 0, 1588 1579 new PointerType( Type::Qualifiers(), new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ) ), 0 ); 1589 // ObjectDecl *newFunPtr = new ObjectDecl( "", DeclarationNode::NoStorageClass, LinkageSpec::Cforall, 0, new PointerType( Type::Qualifiers(), new FunctionType( Type::Qualifiers(), true ) ), 0 );1590 1580 for ( std::list< TypeDecl *>::const_iterator tyParm = funcType->get_forall().begin(); tyParm != funcType->get_forall().end(); ++tyParm ) { 1591 1581 ObjectDecl *sizeParm, *alignParm;
Note: See TracChangeset
for help on using the changeset viewer.