Internals: Use VL_TO_STRING instead of to_string.

This commit is contained in:
Wilson Snyder 2020-03-05 23:28:41 -05:00
parent 135cbcd79a
commit 29923b78fd

View File

@ -2796,8 +2796,10 @@ private:
newFormat += "%@";
AstNRelinker handle;
argp->unlinkFrBack(&handle);
AstCMethodHard* newp = new AstCMethodHard(
nodep->fileline(), argp, "to_string", NULL);
AstCMath* newp = new AstCMath(
nodep->fileline(), "VL_TO_STRING(", 0, true);
newp->addBodysp(argp);
newp->addBodysp(new AstText(nodep->fileline(), ")"));
newp->dtypeSetString();
newp->pure(true);
newp->protect(false);