diff options
author | Tom Tromey <tromey@adacore.com> | 2023-03-01 12:33:27 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-03-27 08:20:29 -0600 |
commit | c7c3708ac778625d3a87aad541de5f0666acbcc5 (patch) | |
tree | 4130dbcad187159564716bfa2b2ac534aaec651c /gdb/value.c | |
parent | c225d6b80413d373c84f743b2c4e9b4851ff82dc (diff) | |
download | gdb-c7c3708ac778625d3a87aad541de5f0666acbcc5.zip gdb-c7c3708ac778625d3a87aad541de5f0666acbcc5.tar.gz gdb-c7c3708ac778625d3a87aad541de5f0666acbcc5.tar.bz2 |
Avoid a copy in gdb_mpz::safe_export
Currently, gdb_mpz::safe_export will always make a copy of *this.
However, this copy isn't always needed. This patch makes this code
slightly more efficient, by avoiding the copy when possible.
Diffstat (limited to 'gdb/value.c')
0 files changed, 0 insertions, 0 deletions