Ignore:
Timestamp:
Oct 5, 2014, 10:30:15 PM (5 years ago)
Author:
nmedfort
Message:

Removed string based CC lookup in CC Compiler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_compiler.cpp

    r4214 r4215  
    7474        PabloE * assign_non_final = cg.createAssign(gs_nonfinal, cg.createOr(cg.createOr(u8pfx, u8scope32), cg.createOr(u8scope42, u8scope43)));
    7575        #ifdef USE_IF_FOR_NONFINAL
    76         std::list<PabloE *> * if_body = new std::list<PabloE *> ();
    77         if_body->push_back(assign_non_final);
    78         mCG.push_back(makeIf(u8pfx, *if_body));
     76        If::List body;
     77        body.push_back(assign_non_final);
     78        mCG.push_back(cg.createIf(u8pfx, body));
    7979        #else
    8080        cg.push_back(assign_non_final);
     
    224224
    225225        wt.push_back(target);
    226         cg.push_back(makeWhile(cg.createVar(while_test), wt.expressions()));
     226        cg.push_back(cg.createWhile(cg.createVar(while_test), wt.expressions()));
    227227    }   
    228228    return target;
Note: See TracChangeset for help on using the changeset viewer.