mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 18:42:58 +02:00
Internals: Standardize debug() function generation. No functional change intended.
This commit is contained in:
+2
-10
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user