Optimize VL_SFORMAT when result is string (#7702)

Omit unused bit width parameter. Emit rule is simple enough to change
and the unused parameter just bloats code size.
This commit is contained in:
Geza Lore
2026-06-03 08:42:48 +01:00
committed by GitHub
parent 970e7983d3
commit efb83c55de
3 changed files with 7 additions and 7 deletions
+1 -3
View File
@@ -1888,9 +1888,7 @@ void VL_SFORMAT_NX(int obits, EData* destp, const std::string& format, int argc,
_vl_string_to_vint(obits, destp, t_output.length(), t_output.c_str());
}
void VL_SFORMAT_NX(int obits_ignored, std::string& output, const std::string& format, int argc,
...) VL_MT_SAFE {
(void)obits_ignored; // So VL_SFORMAT_NNX function signatures all match
void VL_SFORMAT_NX(std::string& output, const std::string& format, int argc, ...) VL_MT_SAFE {
std::string temp_output;
va_list ap;
va_start(ap, argc);