diff options
author | Pedro Alves <pedro@palves.net> | 2022-05-27 16:25:01 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2022-06-17 09:58:49 +0100 |
commit | 5c1ddcb69a01c3d4985ecffbbab126a4e8cd4e33 (patch) | |
tree | ec84d1ff71f69470b6f439f7e1f1a442599e0080 /gdb/location.h | |
parent | 40d97ee21fc3e39db73ee8f84b847a22f9d251cc (diff) | |
download | gdb-5c1ddcb69a01c3d4985ecffbbab126a4e8cd4e33.zip gdb-5c1ddcb69a01c3d4985ecffbbab126a4e8cd4e33.tar.gz gdb-5c1ddcb69a01c3d4985ecffbbab126a4e8cd4e33.tar.bz2 |
Eliminate copy_location_spec
copy_location_spec is just a wrapper around location_spec::clone(), so
remove it and call clone() directly. This simplifies users, as they
no longer have to use std::unique_ptr::get().
Change-Id: I8ce8658589460b98888283b306b315a5b8f73976
Diffstat (limited to 'gdb/location.h')
-rw-r--r-- | gdb/location.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/location.h b/gdb/location.h index 0a2f179..8275fa9 100644 --- a/gdb/location.h +++ b/gdb/location.h @@ -297,10 +297,6 @@ const explicit_location_spec * explicit_location_spec * as_explicit_location_spec (location_spec *locspec); -/* Return a copy of the given SRC location spec. */ - -extern location_spec_up copy_location_spec (const location_spec *src); - /* Attempt to convert the input string in *ARGP into a location_spec. ARGP is advanced past any processed input. Always returns a non-nullptr location_spec unique pointer object. |