3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-27 06:27:57 +00:00

Move source_location to register.h

Revert `PrettyHelp::get_current()` for no args since we can use `Pass::location` instead.
This commit is contained in:
Krystine Sherwin 2025-07-21 10:34:31 +12:00
parent 929c437b26
commit 6fdefee35b
No known key found for this signature in database
4 changed files with 30 additions and 28 deletions

View file

@ -84,12 +84,10 @@ PrettyHelp::~PrettyHelp()
current_help = _prior;
}
PrettyHelp *PrettyHelp::get_current(source_location location)
PrettyHelp *PrettyHelp::get_current()
{
if (current_help == nullptr)
new PrettyHelp();
current_help->_root_listing.source_file = location.file_name();
current_help->_root_listing.source_line = location.line();
return current_help;
}