diff options
author | Pedro Alves <pedro@palves.net> | 2022-05-27 16:44:02 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2022-06-17 09:58:49 +0100 |
commit | 709438c75abc52cdc4888e7eaa089c2709c75a07 (patch) | |
tree | 4b114d8c51d0cbc47c4e3a8a52e9aecc848171ce /gdb/location.c | |
parent | 7464aeaab47ca3fb7127223fe372489c9c7ed69e (diff) | |
download | fsf-binutils-gdb-709438c75abc52cdc4888e7eaa089c2709c75a07.zip fsf-binutils-gdb-709438c75abc52cdc4888e7eaa089c2709c75a07.tar.gz fsf-binutils-gdb-709438c75abc52cdc4888e7eaa089c2709c75a07.tar.bz2 |
Convert location_spec_to_string to a method
This converts location_spec_to_string to a method of location_spec,
simplifying the code using it, as it no longer has to use
std::unique_ptr::get().
Change-Id: I621bdad8ea084470a2724163f614578caf8f2dd5
Diffstat (limited to 'gdb/location.c')
-rw-r--r-- | gdb/location.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/location.c b/gdb/location.c index 9643ea8..e22ee41 100644 --- a/gdb/location.c +++ b/gdb/location.c @@ -345,14 +345,6 @@ explicit_location_spec::to_linespec () const return explicit_to_string_internal (true, this); } -/* See description in location.h. */ - -const char * -location_spec_to_string (struct location_spec *locspec) -{ - return locspec->to_string (); -} - /* Find an instance of the quote character C in the string S that is outside of all single- and double-quoted strings (i.e., any quoting other than C). */ |