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/pablo/printer_pablos.cpp

    r4214 r4215  
    5353}
    5454
    55 std::string StatementPrinter::Print_PB_PabloStmts(const List &stmts, std::string strOut) {
     55std::string StatementPrinter::Print_PB_PabloStmts(const ExpressionList & stmts, std::string strOut) {
    5656    for (const auto stmt : stmts) {
    5757        strOut += ShowPabloS(stmt);
     
    6060}
    6161
    62 std::string StatementPrinter::Print_CC_PabloStmts(const List & stmts) {
     62std::string StatementPrinter::Print_CC_PabloStmts(const pablo::ExpressionList &stmts) {
    6363    std::string strOut = "Total Statements: " + std::to_string(stmts.size()) + "\n";
    6464    for (const auto stmt : stmts) {
     
    8282    else if (const While * whl = dyn_cast<const While>(stmt))
    8383    {
    84         retVal = "While(" + ShowPabloE(whl->getExpr()) + ", " + Print_PB_PabloStmts(whl->getPSList(), retVal) + ")";
     84        retVal = "While(" + ShowPabloE(whl->getCondition()) + ", " + Print_PB_PabloStmts(whl->getPSList(), retVal) + ")";
    8585    }
    8686    else retVal = "UNKNOWN_STATEMENT_TYPE!!!";
Note: See TracChangeset for help on using the changeset viewer.