Ignore:
Timestamp:
Jun 2, 2015, 11:43:13 AM (4 years ago)
Author:
nmedfort
Message:

More multiplexing work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pabloAST.cpp

    r4585 r4586  
    201201}
    202202
    203 Statement * Statement::replaceWith(PabloAST * const expr, const bool rename) {
     203Statement * Statement::replaceWith(PabloAST * const expr, const bool rename, const bool recursively) {
    204204    assert (expr);
    205205    if (LLVM_UNLIKELY(expr == this)) {
     
    213213    }
    214214    replaceAllUsesWith(expr);
    215     return eraseFromParent();
     215    return eraseFromParent(recursively);
    216216}
    217217
     
    252252        statement->insertAfter(mInsertionPoint);
    253253        mLast = (mLast == mInsertionPoint) ? statement : mLast;
     254        assert (statement->mPrev == mInsertionPoint);
    254255        mInsertionPoint = statement;
    255256    }
Note: See TracChangeset for help on using the changeset viewer.