Reduce --debugi 2 verbosity

This commit is contained in:
Wilson Snyder 2024-08-27 07:27:59 -04:00
parent f623db7d68
commit e927536099
4 changed files with 8 additions and 8 deletions

View File

@ -123,7 +123,7 @@ void V3ErrorGuarded::v3errorEnd(std::ostringstream& sstr, const string& extra)
// Skip suppressed messages
if (m_errorSuppressed
// On debug, show only non default-off warning to prevent pages of warnings
&& (!debug() || m_errorCode.defaultsOff()))
&& (!debug() || debug() < 3 || m_errorCode.defaultsOff()))
return;
string msg = msgPrefix() + sstr.str();
// If suppressed print only first line to reduce verbosity

View File

@ -87,7 +87,7 @@ protected:
bool preproc(FileLine* fl, const string& modname, VInFilter* filterp, V3ParseImp* parsep,
const string& errmsg) { // "" for no error
// Preprocess the given module, putting output in vppFilename
UINFONL(1, " Preprocessing " << modname << endl);
UINFO(1, "Preprocessing " << modname << endl);
// Preprocess
s_filterp = filterp;

View File

@ -377,8 +377,8 @@ public:
}
UINFO(6, "Tour was: ");
for (const Vertex* vxp : tour) UINFONL(6, " " << vxp->key());
UINFONL(6, "\n");
for (const Vertex* vxp : tour) UINFONL(6, "- " << vxp->key());
UINFONL(6, "-\n");
}
void dumpGraph(std::ostream& os, const string& nameComment) const {

View File

@ -5033,17 +5033,17 @@ class WidthVisitor final : public VNVisitor {
assertAtStatement(nodep);
// if (debug()) nodep->dumpTree("- AssignPre: ");
{
if (debug()) nodep->dumpTree("- assin:: ");
// if (debug()) nodep->dumpTree("- assin:: ");
userIterateAndNext(nodep->lhsp(), WidthVP{SELF, BOTH}.p());
UASSERT_OBJ(nodep->lhsp()->dtypep(), nodep, "How can LHS be untyped?");
UASSERT_OBJ(nodep->lhsp()->dtypep()->widthSized(), nodep, "How can LHS be unsized?");
nodep->dtypeFrom(nodep->lhsp());
//
// AstPattern needs to know the proposed data type of the lhs, so pass on the prelim
if (debug()) nodep->dumpTree("- assrhs: ");
// if (debug()) nodep->dumpTree("- assrhs: ");
userIterateAndNext(nodep->rhsp(), WidthVP{nodep->dtypep(), PRELIM}.p());
//
if (debug()) nodep->dumpTree("- assign: ");
// if (debug()) nodep->dumpTree("- assign: ");
AstNodeDType* const lhsDTypep
= nodep->lhsp()->dtypep(); // Note we use rhsp for context determined
iterateCheckAssign(nodep, "Assign RHS", nodep->rhsp(), FINAL, lhsDTypep);
@ -7115,7 +7115,7 @@ class WidthVisitor final : public VNVisitor {
<< " (IEEE 1800-2023 6.19.3)\n"
<< nodep->warnMore()
<< "... Suggest use enum's mnemonic, or static cast");
if (debug()) nodep->backp()->dumpTree("- back: ");
// if (debug()) nodep->backp()->dumpTree("- back: ");
}
}
AstNodeDType* subDTypep = expDTypep;