Ignore:
Timestamp:
Oct 7, 2014, 12:10:04 PM (5 years ago)
Author:
nmedfort
Message:

Some revisions to the LLVM_Generator; renamed it to PabloCompiler?.

File:
1 edited

Legend:

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

    r4215 r4220  
    3838using namespace pablo;
    3939
    40 std::string StatementPrinter::PrintStmts(const CodeGenState & cg_state)
     40std::string StatementPrinter::PrintStmts(const PabloBlock & cg_state)
    4141{
    4242    std::string strOut = "[";
     
    7878    else if (const If * ifstmt = dyn_cast<const If>(stmt))
    7979    {
    80         retVal = "If(" + ShowPabloE(ifstmt->getExpr()) + ", " + Print_PB_PabloStmts(ifstmt->getPSList(), retVal) + ")";
     80        retVal = "If(" + ShowPabloE(ifstmt->getCondition()) + ", " + Print_PB_PabloStmts(ifstmt->getBody(), retVal) + ")";
    8181    }
    8282    else if (const While * whl = dyn_cast<const While>(stmt))
    8383    {
    84         retVal = "While(" + ShowPabloE(whl->getCondition()) + ", " + Print_PB_PabloStmts(whl->getPSList(), retVal) + ")";
     84        retVal = "While(" + ShowPabloE(whl->getCondition()) + ", " + Print_PB_PabloStmts(whl->getBody(), retVal) + ")";
    8585    }
    8686    else retVal = "UNKNOWN_STATEMENT_TYPE!!!";
Note: See TracChangeset for help on using the changeset viewer.