Changeset 99da267 for src/AST/Copy.hpp


Ignore:
Timestamp:
Jul 19, 2019, 2:44:13 PM (5 years ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
f6cc734e
Parents:
1f1c102
Message:

Running a deep-copy on FunctionType? at RenameVars? time. This manual action addresses the currently-problematic occurrence of 'the transitivity problem.' Resolution of bootloader (and thus builtins) is now completing. The change on RenameVars?.cc makes this happen. Changes on AST/*.hpp finish making the deep-copy framework compile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Copy.hpp

    r1f1c102 r99da267  
    2323
    2424template<typename node_t>
    25 const node_t * shallowCopy( const node_t * node ) {
     25node_t * shallowCopy( const node_t * node );
    2626/* Create a shallow copy of the node given.
    2727 *
     
    3131
    3232template<typename node_t>
    33 node_t * deepCopy( node_t const * localRoot );
     33node_t * deepCopy( const node_t * localRoot );
    3434/* Create a deep copy of the tree rooted at localRoot.
    3535 *
     
    106106
    107107template<typename node_t>
    108 node_t * shallowCopy( node_t const * localRoot ) {
     108node_t * shallowCopy( const node_t * localRoot ) {
    109109        return localRoot->clone();
    110110}
    111111
    112112template<typename node_t>
    113 node_t * deepCopy( node_t const * localRoot ) {
     113node_t * deepCopy( const node_t * localRoot ) {
    114114        Pass< DeepCopyCore > dc;
    115115        node_t const * newRoot = localRoot->accept( dc );
Note: See TracChangeset for help on using the changeset viewer.