binutils-gdb/gdb/compile
Tom Tromey bdfea17ea9 Return unique_ptr from language_defn::get_compile_context
This changes language_defn::get_compile_context to return a
unique_ptr.  This makes the ownership transfer clear.

gdb/ChangeLog
2021-02-05  Tom Tromey  <tom@tromey.com>

	* compile/compile-c-support.c (get_compile_context)
	(c_get_compile_context, cplus_get_compile_context): Change return
	type.
	* language.c (language_defn::get_compile_instance): New method.
	* language.h (language_defn::get_compile_instance): Change return
	type.  No longer inline.
	* c-lang.c (c_language::get_compile_instance): Change return type.
	(cplus_language::get_compile_instance): Change return type.
	* c-lang.h (c_get_compile_context, cplus_get_compile_context):
	Change return type.
	* compile/compile.c (compile_to_object): Update.
2021-02-05 07:17:12 -07:00
..
compile-c-support.c Return unique_ptr from language_defn::get_compile_context 2021-02-05 07:17:12 -07:00
compile-c-symbols.c Use std::vector for "registers_used" in compile feature 2021-01-23 20:33:25 -07:00
compile-c-types.c gdb: rename type::{arch,objfile} -> type::{arch_owner,objfile_owner} 2021-01-28 10:09:02 -05:00
compile-c.h Use std::vector for "registers_used" in compile feature 2021-01-23 20:33:25 -07:00
compile-cplus-symbols.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-cplus-types.c gdb: rename type::{arch,objfile} -> type::{arch_owner,objfile_owner} 2021-01-28 10:09:02 -05:00
compile-cplus.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-internal.h Remove call to reset from compile_to_object 2021-01-23 17:48:48 -07:00
compile-loc2c.c Avoid crash when "compile" expression uses cooked register 2021-01-23 20:33:25 -07:00
compile-object-load.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-object-load.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-object-run.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-object-run.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile.c Return unique_ptr from language_defn::get_compile_context 2021-02-05 07:17:12 -07:00
compile.h Use std::vector for "registers_used" in compile feature 2021-01-23 20:33:25 -07:00
gcc-c-plugin.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
gcc-cp-plugin.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00