Changeset ac633d0 for src/GenPoly


Ignore:
Timestamp:
Mar 9, 2016, 10:37:29 AM (9 years ago)
Author:
Aaron Moss <a3moss@…>
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
Message:

Strip some dead code from Box.cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Box.cc

    rbed4c63e rac633d0  
    135135                        InstantiationMap() { beginScope(); }
    136136
    137 //              private:
    138137                        /// Gets the value for the concrete instantiation of this type, assuming it has already been instantiated in the current scope.
    139138                        /// Returns NULL on none such.
     
    153152                                return 0;
    154153                        }
    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
    160155                        /// Adds a value for a concrete type to the current scope
    161156                        void insert( AggregateDecl *generic, const std::list< TypeExpr* > &params, Value *value ) {
     
    163158                                scopes.back()[generic].push_back( Instantiation( key, value ) );
    164159                        }
    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 ); }
    168160                };
    169161
     
    348340                mutateTranslationUnit/*All*/( translationUnit, pass1 );
    349341                mutateTranslationUnit/*All*/( translationUnit, pass2 );
    350 //              instantiateGeneric( translationUnit );
    351342                instantiator.mutateDeclarationList( translationUnit );
    352343                mutateTranslationUnit/*All*/( translationUnit, memberFixer );
     
    15871578                        ObjectDecl newPtr( "", DeclarationNode::NoStorageClass, LinkageSpec::C, 0,
    15881579                                           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 );
    15901580                        for ( std::list< TypeDecl *>::const_iterator tyParm = funcType->get_forall().begin(); tyParm != funcType->get_forall().end(); ++tyParm ) {
    15911581                                ObjectDecl *sizeParm, *alignParm;
Note: See TracChangeset for help on using the changeset viewer.