Internals: Standardize debug() function generation. No functional change intended.

This commit is contained in:
Wilson Snyder
2018-05-14 06:50:47 -04:00
parent 4abf5be9ce
commit cd4e6b35b3
65 changed files with 98 additions and 403 deletions
+2 -10
View File
@@ -79,11 +79,7 @@
class TristateBaseVisitor : public AstNVisitor {
public:
// METHODS
static int debug() {
static int level = -1;
if (VL_UNLIKELY(level < 0)) level = v3Global.opt.debugSrcLevel(__FILE__);
return level;
}
VL_DEBUG_FUNC; // Declare debug()
};
//######################################################################
@@ -142,11 +138,7 @@ public:
private:
// METHODS
static int debug() {
static int level = -1;
if (VL_UNLIKELY(level < 0)) level = v3Global.opt.debugSrcLevel(__FILE__);
return level;
}
VL_DEBUG_FUNC; // Declare debug()
TristateVertex* makeVertex(AstNode* nodep) {
TristateVertex* vertexp = (TristateVertex*)(nodep->user5p());