Changeset ca35c51 for src/GenPoly


Ignore:
Timestamp:
Jun 30, 2016, 1:47:52 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
1bc1bb2
Parents:
84d4d6f
Message:

move implementation of ConstantNode? to ConstantExpr?

Location:
src/GenPoly
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/Box.cc

    r84d4d6f rca35c51  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Fri May 13 14:51:21 2016
    13 // Update Count     : 295
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Wed Jun 29 21:43:03 2016
     13// Update Count     : 296
    1414//
    1515
     
    22942294                                // all union members are at offset zero
    22952295                                delete offsetofExpr;
    2296                                 return new ConstantExpr( Constant( new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ), std::string("0") ) );
     2296                                return new ConstantExpr( Constant( new BasicType( Type::Qualifiers(), BasicType::LongUnsignedInt ), "0" ) );
    22972297                        } else return offsetofExpr;
    22982298                }
  • src/GenPoly/GenPoly.cc

    r84d4d6f rca35c51  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Wed May 25 13:39:21 2016
    13 // Update Count     : 13
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Wed Jun 29 21:45:53 2016
     13// Update Count     : 14
    1414//
    1515
     
    7878                type = replaceTypeInst( type, env );
    7979
    80                 if ( TypeInstType *typeInst = dynamic_cast< TypeInstType * >( type ) ) {
     80                if ( dynamic_cast< TypeInstType * >( type ) ) {
    8181                        return type;
    8282                } else if ( StructInstType *structType = dynamic_cast< StructInstType* >( type ) ) {
Note: See TracChangeset for help on using the changeset viewer.