From 3e0401de1c99f552616a78db59a326bba5517310 Mon Sep 17 00:00:00 2001 From: John Coiner Date: Wed, 24 Jan 2018 20:19:52 -0500 Subject: [PATCH] Misc harmless cleanups from thread branch. Signed-off-by: Wilson Snyder --- src/V3EmitC.cpp | 2 +- src/Verilator.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/V3EmitC.cpp b/src/V3EmitC.cpp index ea088f7cd..5ed453232 100644 --- a/src/V3EmitC.cpp +++ b/src/V3EmitC.cpp @@ -859,7 +859,7 @@ class EmitCImp : EmitCStmts { //--------------------------------------- // VISITORS - using EmitCStmts::visit; // Suppress hidden overloaded virtual function warnng + using EmitCStmts::visit; // Suppress hidden overloaded virtual function warning virtual void visit(AstCFunc* nodep) { // TRACE_* and DPI handled elsewhere if (nodep->funcType().isTrace()) return; diff --git a/src/Verilator.cpp b/src/Verilator.cpp index a3353e8f0..b7a02b89a 100644 --- a/src/Verilator.cpp +++ b/src/Verilator.cpp @@ -476,6 +476,7 @@ void process () { V3Const::constifyCpp(v3Global.rootp()); V3Subst::substituteAll(v3Global.rootp()); } + if (!v3Global.opt.xmlOnly() && v3Global.opt.oSubstConst()) { // Constant folding of substitutions