Ignore:
Timestamp:
Jul 13, 2017, 2:27:58 PM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
65cec25
Parents:
0a81c3f
Message:

Add conversion & cast cost for reference conversions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/ConversionCost.h

    r0a81c3f r2463d0e  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // ConversionCost.h -- 
     7// ConversionCost.h --
    88//
    99// Author           : Richard C. Bilson
     
    2626          public:
    2727                ConversionCost( Type *dest, const SymTab::Indexer &indexer, const TypeEnvironment &env );
    28  
     28
    2929                Cost get_cost() const { return cost; }
    3030
     
    3333                virtual void visit(PointerType *pointerType);
    3434                virtual void visit(ArrayType *arrayType);
     35                virtual void visit(ReferenceType *refType);
    3536                virtual void visit(FunctionType *functionType);
    3637                virtual void visit(StructInstType *aggregateUseType);
     
    4950                const TypeEnvironment &env;
    5051        };
     52
     53        Cost convertToReferenceCost( Type * src, ReferenceType * dest, const SymTab::Indexer & indexer, const TypeEnvironment & env );
    5154} // namespace ResolvExpr
    5255
Note: See TracChangeset for help on using the changeset viewer.