debug cleanup
This commit is contained in:
parent
9b1dc880f5
commit
ce76f3a3ee
|
|
@ -37,13 +37,13 @@ typedef Map<const char *, int, CharPtrLess> DebugMap;
|
||||||
class Debug
|
class Debug
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit Debug(Report *&report);
|
explicit Debug(Report *report);
|
||||||
~Debug();
|
~Debug();
|
||||||
bool check(const char *what,
|
|
||||||
int level) const;
|
|
||||||
int level(const char *what);
|
int level(const char *what);
|
||||||
void setLevel(const char *what,
|
void setLevel(const char *what,
|
||||||
int level);
|
int level);
|
||||||
|
bool check(const char *what,
|
||||||
|
int level) const;
|
||||||
int statsLevel() const { return stats_level_; }
|
int statsLevel() const { return stats_level_; }
|
||||||
void reportLine(const char *what,
|
void reportLine(const char *what,
|
||||||
const char *fmt,
|
const char *fmt,
|
||||||
|
|
@ -51,7 +51,7 @@ public:
|
||||||
__attribute__((format (printf, 3, 4)));
|
__attribute__((format (printf, 3, 4)));
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Report *&report_;
|
Report *report_;
|
||||||
DebugMap *debug_map_;
|
DebugMap *debug_map_;
|
||||||
int stats_level_;
|
int stats_level_;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace sta {
|
||||||
|
|
||||||
bool debug_on = false;
|
bool debug_on = false;
|
||||||
|
|
||||||
Debug::Debug(Report *&report) :
|
Debug::Debug(Report *report) :
|
||||||
report_(report),
|
report_(report),
|
||||||
debug_map_(nullptr),
|
debug_map_(nullptr),
|
||||||
stats_level_(0)
|
stats_level_(0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue