Ignore:
Timestamp:
Jul 17, 2017, 1:59:53 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
89be1c68
Parents:
a493682
Message:

Update Cost structure to include static unsafe, poly, safe members

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/ConversionCost.cc

    ra493682 rb46e3bd  
    2323        const Cost Cost::zero = Cost( 0, 0, 0 );
    2424        const Cost Cost::infinity = Cost( -1, -1, -1 );
     25        const Cost Cost::unsafe = Cost( 1, 0, 0 );
     26        const Cost Cost::poly = Cost( 0, 1, 0 );
     27        const Cost Cost::safe = Cost( 0, 0, 1 );
     28
    2529
    2630        Cost conversionCost( Type *src, Type *dest, const SymTab::Indexer &indexer, const TypeEnvironment &env ) {
Note: See TracChangeset for help on using the changeset viewer.