debug cleanup

This commit is contained in:
James Cherry 2020-12-29 11:13:12 -08:00
parent 9b1dc880f5
commit ce76f3a3ee
2 changed files with 7 additions and 7 deletions

View File

@ -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_;

View File

@ -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)