From f2ca63a5a110c1eb1af7d094b57db9d1dbf151fd Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 6 Oct 2019 18:10:58 +0100 Subject: [PATCH] Disable debug output when debug_elaborate is not set. --- elab_expr.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/elab_expr.cc b/elab_expr.cc index 4c22f9c6b..65c1dc714 100644 --- a/elab_expr.cc +++ b/elab_expr.cc @@ -4058,10 +4058,12 @@ NetExpr* PEIdent::elaborate_expr(Design*des, NetScope*scope, // If this is an array object, and there are members in // the member_path, check for array properties. if (net->darray_type() && member_path.size() > 0) { - cerr << get_fileline() << ": PEIdent::elaborate_expr: " - << "Ident " << base_path - << " look for array property " << member_path - << endl; + if (debug_elaborate) { + cerr << get_fileline() << ": PEIdent::elaborate_expr: " + << "Ident " << base_path + << " look for array property " << member_path + << endl; + } ivl_assert(*this, member_path.size() == 1); const name_component_t member_comp = member_path.front();