Internals: Rename pure to dpiPure. No functional change. (#4461)

This commit is contained in:
Ryszard Rozak
2023-09-08 08:51:19 +02:00
committed by GitHub
parent 11b5dae88d
commit 91227d26bb
6 changed files with 22 additions and 20 deletions
+3 -3
View File
@@ -639,7 +639,7 @@ private:
// Return fancy signature for DPI function. Variable names are not included so differences
// in only argument names will not matter (as required by the standard).
string dpiproto;
if (nodep->pure()) dpiproto += "pure ";
if (nodep->dpiPure()) dpiproto += "pure ";
if (nodep->dpiContext()) dpiproto += "context ";
dpiproto += rtnvarp ? rtnvarp->dpiArgType(true, true) : "void";
dpiproto += " " + nodep->cname() + " (";
@@ -908,7 +908,7 @@ private:
funcp->entryPoint(false);
funcp->isMethod(false);
funcp->protect(false);
funcp->pure(nodep->pure());
funcp->dpiPure(nodep->dpiPure());
// Add DPI Import to top, since it's a global function
m_topScopep->scopep()->addBlocksp(funcp);
makePortList(nodep, funcp);
@@ -1183,7 +1183,7 @@ private:
cfuncp->isStatic(false);
}
cfuncp->isVirtual(nodep->isVirtual());
cfuncp->pure(nodep->pure());
cfuncp->dpiPure(nodep->dpiPure());
if (nodep->name() == "new") {
cfuncp->isConstructor(true);
AstClass* const classp = m_statep->getClassp(nodep);