3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-06 15:25:47 +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-03-21 10:26:10 +13:00
parent 431cb2d1b9
commit 1efd3aeb7d
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;
}