Ignore:
Timestamp:
Oct 4, 2014, 5:14:27 PM (5 years ago)
Author:
nmedfort
Message:

Removed 'newsym' from CodeGenState? and replaced with an Assign target system in RE_Compiler

File:
1 edited

Legend:

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

    r4210 r4211  
    4848
    4949    strOut = strOut.substr(0, strOut.length() - 1);
    50     strOut += "],";
    51 
    52     //Print the name of the variable that holds the match result for the overall expression so far.
    53     strOut += "'" + cg_state.newsym + "'";
     50    strOut += "]";
    5451
    5552    return strOut;
     
    7774    if (const Assign * an = dyn_cast<const Assign>(stmt))
    7875    {
    79         retVal = "Assign('" + an->getM() + "', " + ShowPabloE(an->getExpr()) + "),";
     76        retVal = "Assign('" + an->getName() + "', " + ShowPabloE(an->getExpr()) + "),";
    8077    }
    8178    else if (const If * ifstmt = dyn_cast<const If>(stmt))
     
    105102    else if (const Var * pablo_var = dyn_cast<const Var>(expr))
    106103    {
    107         retVal = "Var '" + pablo_var->getVar() + "' ";
     104        retVal = "Var '" + pablo_var->getName() + "' ";
    108105    }
    109106    else if (const And * pablo_and = dyn_cast<const And>(expr))
Note: See TracChangeset for help on using the changeset viewer.