updated dvm part

This commit is contained in:
ALEXks
2024-06-19 18:07:10 +03:00
parent c261697970
commit 305d43c591
2 changed files with 13 additions and 3 deletions

View File

@@ -1774,6 +1774,7 @@ public:
// added by A.S. Kolganov 02.07.2014, updated 21.12.2014
inline SgIfStmt(SgExpression &cond, SgStatement &body, int t);
inline SgIfStmt(SgExpression &cond);
inline SgIfStmt(SgExpression* cond);
// added by A.S. Kolganov 27.07.2018,
inline void setBodies(SgStatement *trueBody, SgStatement *falseBody);
@@ -6895,7 +6896,6 @@ inline SgLogIfStmt::~SgLogIfStmt()
// SgIfStmt--inlines
inline SgIfStmt::SgIfStmt(int variant): SgStatement(variant)
{}
@@ -6916,6 +6916,13 @@ inline SgIfStmt::SgIfStmt(SgExpression &cond) : SgStatement(IF_NODE)
addControlEndToStmt(thebif);
}
inline SgIfStmt::SgIfStmt(SgExpression* cond) : SgStatement(IF_NODE)
{
if (cond)
BIF_LL1(thebif) = cond->thellnd;
addControlEndToStmt(thebif);
}
inline SgIfStmt::SgIfStmt(SgExpression &cond, SgStatement &trueBody, SgStatement &falseBody, SgSymbol &construct_name):SgStatement(IF_NODE)
{
BIF_LL1(thebif) = cond.thellnd;