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:
parent
431cb2d1b9
commit
1efd3aeb7d
4 changed files with 30 additions and 28 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue