Elaboration debug messages should depend on debug flag.
The debug messages for the ternary were missing a conditional on the debug flag.
This commit is contained in:
parent
a4973c217d
commit
a39b9d4ef1
14
elab_expr.cc
14
elab_expr.cc
|
|
@ -2211,9 +2211,10 @@ NetExpr*PETernary::elaborate_expr(Design*des, NetScope*scope,
|
||||||
|
|
||||||
// Condition is constant TRUE, so we only need the true claue.
|
// Condition is constant TRUE, so we only need the true claue.
|
||||||
if (cval.get(0) == verinum::V1) {
|
if (cval.get(0) == verinum::V1) {
|
||||||
cerr << get_fileline() << ": debug: "
|
if (debug_elaborate)
|
||||||
<< "Short-circuit elaborate TRUE clause of ternary."
|
cerr << get_fileline() << ": debug: Short-circuit "
|
||||||
<< endl;
|
"elaborate TRUE clause of ternary."
|
||||||
|
<< endl;
|
||||||
NetExpr*tru = elab_and_eval(des, scope, tru_, expr_wid);
|
NetExpr*tru = elab_and_eval(des, scope, tru_, expr_wid);
|
||||||
return pad_to_width(tru, expr_wid);
|
return pad_to_width(tru, expr_wid);
|
||||||
}
|
}
|
||||||
|
|
@ -2221,9 +2222,10 @@ NetExpr*PETernary::elaborate_expr(Design*des, NetScope*scope,
|
||||||
// Condition is constant FALSE, so we only need the
|
// Condition is constant FALSE, so we only need the
|
||||||
// false clause.
|
// false clause.
|
||||||
if (cval.get(0) == verinum::V0) {
|
if (cval.get(0) == verinum::V0) {
|
||||||
cerr << get_fileline() << ": debug: "
|
if (debug_elaborate)
|
||||||
<< "Short-circuit elaborate FALSE clause of ternary."
|
cerr << get_fileline() << ": debug: Short-circuit "
|
||||||
<< endl;
|
"elaborate FALSE clause of ternary."
|
||||||
|
<< endl;
|
||||||
NetExpr*fal = elab_and_eval(des, scope, fal_, expr_wid);
|
NetExpr*fal = elab_and_eval(des, scope, fal_, expr_wid);
|
||||||
return pad_to_width(fal, expr_wid);
|
return pad_to_width(fal, expr_wid);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue