Added log_dump() support for IdStrings

This commit is contained in:
Clifford Wolf 2015-06-08 14:49:02 +02:00
parent 13983e8318
commit 98650a0609
2 changed files with 5 additions and 0 deletions

View File

@ -376,6 +376,10 @@ void log_flush()
f->flush(); f->flush();
} }
void log_dump_val_worker(RTLIL::IdString v) {
log("%s", log_id(v));
}
void log_dump_val_worker(RTLIL::SigSpec v) { void log_dump_val_worker(RTLIL::SigSpec v) {
log("%s", log_signal(v)); log("%s", log_signal(v));
} }

View File

@ -222,6 +222,7 @@ static inline void log_dump_val_worker(const char *v) { log("%s", v); }
static inline void log_dump_val_worker(std::string v) { log("%s", v.c_str()); } static inline void log_dump_val_worker(std::string v) { log("%s", v.c_str()); }
static inline void log_dump_val_worker(PerformanceTimer p) { log("%f seconds", p.sec()); } static inline void log_dump_val_worker(PerformanceTimer p) { log("%f seconds", p.sec()); }
static inline void log_dump_args_worker(const char *p YS_ATTRIBUTE(unused)) { log_assert(*p == 0); } static inline void log_dump_args_worker(const char *p YS_ATTRIBUTE(unused)) { log_assert(*p == 0); }
void log_dump_val_worker(RTLIL::IdString v);
void log_dump_val_worker(RTLIL::SigSpec v); void log_dump_val_worker(RTLIL::SigSpec v);
template<typename T> template<typename T>