aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-link.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-10-17 11:38:06 +0200
committerTom de Vries <tdevries@suse.de>2023-10-17 11:38:06 +0200
commit7e5649156720ec6c3aa5e2036b27811bc8195ab9 (patch)
treedd39720a56af95be020e6aea1b393377e1465bdf /libctf/ctf-link.c
parent3233ad1e4e44530fa1088cef4790bdab6ee14944 (diff)
downloadbinutils-7e5649156720ec6c3aa5e2036b27811bc8195ab9.zip
binutils-7e5649156720ec6c3aa5e2036b27811bc8195ab9.tar.gz
binutils-7e5649156720ec6c3aa5e2036b27811bc8195ab9.tar.bz2
[gdb/cli] Skip string copy in source_cache::ensure
In function source_cache::ensure we have: ... std::ostringstream output; ... contents = output.str (); ... The last line causes an unnecessary string copy. C++20 allows us to skip it, like this: ... contents = std::move (output).str (); ... Use the more efficient solution. Tested on x86_64-linux. Reviewed-By: Lancelot Six <lancelot.six@amd.com>
Diffstat (limited to 'libctf/ctf-link.c')
0 files changed, 0 insertions, 0 deletions