Implement DPI import/export as loose functions

This commit is contained in:
Geza Lore
2021-06-13 15:06:28 +01:00
parent c207e98306
commit 7280307a39
9 changed files with 177 additions and 142 deletions
+1 -1
View File
@@ -414,7 +414,7 @@ private:
// UINFO(4, " CFUNC " << nodep << endl);
if (!m_tracingCall && !nodep->entryPoint()) return;
m_tracingCall = false;
if (nodep->dpiImport() && !nodep->pure()) {
if (nodep->dpiImportPrototype() && !nodep->pure()) {
m_sideEffect = true; // If appears on assign RHS, don't ever delete the assignment
}
iterateChildren(nodep);