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