mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: Favor s string literals. No functional change.
This commit is contained in:
+2
-2
@@ -560,7 +560,7 @@ class TaskVisitor final : public VNVisitor {
|
||||
AstNode* const newbodysp
|
||||
= refp->taskp()->stmtsp() ? refp->taskp()->stmtsp()->cloneTree(true) : nullptr;
|
||||
AstNode* const beginp
|
||||
= new AstComment{refp->fileline(), string{"Function: "} + refp->name(), true};
|
||||
= new AstComment{refp->fileline(), "Function: "s + refp->name(), true};
|
||||
if (newbodysp) beginp->addNext(newbodysp);
|
||||
if (debug() >= 9) beginp->dumpTreeAndNext(cout, "- newbegi: ");
|
||||
//
|
||||
@@ -612,7 +612,7 @@ class TaskVisitor final : public VNVisitor {
|
||||
UASSERT_OBJ(cfuncp, refp, "No non-inline task associated with this task call?");
|
||||
//
|
||||
AstNode* const beginp
|
||||
= new AstComment{refp->fileline(), string{"Function: "} + refp->name(), true};
|
||||
= new AstComment{refp->fileline(), "Function: "s + refp->name(), true};
|
||||
AstNodeCCall* ccallp;
|
||||
if (VN_IS(refp, New)) {
|
||||
AstCNew* const cnewp = new AstCNew{refp->fileline(), cfuncp};
|
||||
|
||||
Reference in New Issue
Block a user