X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Flanguage.h;h=4df09d8aa85dab474bb26ee76b2f372e6f93b055;hb=bdfea17ea9bbd9f92ad19a70d770af42473d9c07;hp=44dbf3b8e6fd2313dee69a1f1ab06802e54052b4;hpb=1b30f42106cfd50ef1c020db2ca31f2fbe51ef8a;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/language.h b/gdb/language.h index 44dbf3b8e6..4df09d8aa8 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -374,18 +374,14 @@ struct language_defn symbol_name_matcher_ftype *get_symbol_name_matcher (const lookup_name_info &lookup_name) const; - /* If this language allows compilation from the gdb command line, then - this method will return an instance of struct gcc_context appropriate - to the language. If compilation for this language is generally - supported, but something goes wrong then an exception is thrown. The - returned compiler instance is owned by its caller and must be - deallocated by the caller. If compilation is not supported for this - language then this method returns NULL. */ - - virtual compile_instance *get_compile_instance () const - { - return nullptr; - } + /* If this language allows compilation from the gdb command line, + then this method will return an instance of struct gcc_context + appropriate to the language. If compilation for this language is + generally supported, but something goes wrong then an exception + is thrown. If compilation is not supported for this language + then this method returns NULL. */ + + virtual std::unique_ptr get_compile_instance () const; /* This method must be overridden if 'get_compile_instance' is overridden.