mirror of
https://github.com/verilator/verilator.git
synced 2026-09-03 16:28:53 +02:00
Internals: Cleanup some string constructors. No functional change.
This commit is contained in:
+2
-2
@@ -254,7 +254,7 @@ class HierBlockUsageCollectVisitor final : public VNVisitor {
|
||||
// Don't visit twice
|
||||
if (nodep->user1SetOnce()) return;
|
||||
UINFO(5, "Checking " << nodep->prettyNameQ() << " from "
|
||||
<< (m_hierBlockp ? m_hierBlockp->prettyNameQ() : string("null"))
|
||||
<< (m_hierBlockp ? m_hierBlockp->prettyNameQ() : std::string{"null"})
|
||||
<< std::endl);
|
||||
VL_RESTORER(m_modp);
|
||||
AstModule* const prevHierBlockp = m_hierBlockp;
|
||||
@@ -342,7 +342,7 @@ void V3HierBlockPlan::createPlan(AstNetlist* nodep) {
|
||||
modp->hierBlock(false);
|
||||
}
|
||||
|
||||
std::unique_ptr<V3HierBlockPlan> planp(new V3HierBlockPlan());
|
||||
std::unique_ptr<V3HierBlockPlan> planp(new V3HierBlockPlan);
|
||||
{ HierBlockUsageCollectVisitor{planp.get(), nodep}; }
|
||||
|
||||
V3Stats::addStat("HierBlock, Hierarchical blocks", planp->m_blocks.size());
|
||||
|
||||
Reference in New Issue
Block a user