Turn value_copy into a method

This turns value_copy into a method of value.  Much of this was
written by script.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
Tom Tromey
2023-01-31 14:43:22 -07:00
parent e18312bb59
commit cda0334434
10 changed files with 51 additions and 49 deletions

View File

@@ -4416,7 +4416,7 @@ bpstat::bpstat (const bpstat &other)
print_it (other.print_it)
{
if (other.old_val != NULL)
old_val = release_value (value_copy (other.old_val.get ()));
old_val = release_value (other.old_val.get ()->copy ());
}
/* Return a copy of a bpstat. Like "bs1 = bs2" but all storage that