From 9a49ad8c522a1ce83645d477bf6ced574c3bf651 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Mon, 1 Jun 2020 11:07:52 +0100 Subject: gdb: Convert language la_compute_program field to a method This commit changes the language_data::la_compute_program function pointer member variable into a member function of language_defn. There should be no user visible changes after this commit. gdb/ChangeLog: * ada-lang.c (ada_language_data): Delete la_compute_program initializer. * c-lang.c (c_language_data): Likewise. (c_language::compute_program): New member function. (cplus_language_data): Delete la_compute_program initializer. (cplus_language::compute_program): New member function. (asm_language_data): Delete la_compute_program initializer. (minimal_language_data): Likewise. * c-lang.h (c_compute_program): Update comment. (cplus_compute_program): Likewise. * compile/compile-c-support.c (c_compute_program): Likewise. (cplus_compute_program): Likewise. * compile/compile.c (compile_to_object): Update call to la_compute_program. * d-lang.c (d_language_data): Delete la_compute_program initializer. * f-lang.c (f_language_data): Likewise. * go-lang.c (go_language_data): Likewise. * language.c (unknown_language_data): Likewise. (auto_language_data): Likewise. * language.h (language_data): Delete la_compute_program field. (language_defn::compute_program): New member function. * m2-lang.c (m2_language_data): Delete la_compute_program initializer. * objc-lang.c (objc_language_data): Likewise. * opencl-lang.c (opencl_language_data): Likewise. * p-lang.c (pascal_language_data): Likewise. * rust-lang.c (rust_language_data): Likewise. --- gdb/c-lang.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/c-lang.h') diff --git a/gdb/c-lang.h b/gdb/c-lang.h index 3e07dc9..31ec6f2 100644 --- a/gdb/c-lang.h +++ b/gdb/c-lang.h @@ -172,7 +172,7 @@ extern compile_instance *cplus_get_compile_context (); /* This takes the user-supplied text and returns a new bit of code to compile. - This is used as the la_compute_program language method; see that + This is used as the compute_program language method; see that for a description of the arguments. */ extern std::string c_compute_program (compile_instance *inst, @@ -183,7 +183,7 @@ extern std::string c_compute_program (compile_instance *inst, /* This takes the user-supplied text and returns a new bit of code to compile. - This is used as the la_compute_program language method; see that + This is used as the compute_program language method; see that for a description of the arguments. */ extern std::string cplus_compute_program (compile_instance *inst, -- cgit v1.1