diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-07-12 16:00:06 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-09-16 11:04:03 +0100 |
commit | 3a3440fb8b71a3a4ac919eb5a7edd69be7d5cfff (patch) | |
tree | 4a1e92060f5646e8ca2ecf934a5685ea4a263a61 /gdb/language.h | |
parent | 0d201fa46059ddd27980ccf8cca8488ac98b89be (diff) | |
download | gdb-3a3440fb8b71a3a4ac919eb5a7edd69be7d5cfff.zip gdb-3a3440fb8b71a3a4ac919eb5a7edd69be7d5cfff.tar.gz gdb-3a3440fb8b71a3a4ac919eb5a7edd69be7d5cfff.tar.bz2 |
gdb: Convert language_data::la_array_ordering to a method
Convert language_data::la_array_ordering member variable to a virtual
method language_defn::array_ordering.
There should be no user visible changes after this commit.
gdb/ChangeLog:
* ada-lang.c (ada_language_data): Remove la_array_ordering
initializer.
* c-lang.c (c_language_data): Likewise.
(cplus_language_data): Likewise.
(asm_language_data): Likewise.
(minimal_language_data): Likewise.
* d-lang.c (d_language_data): Likewise.
* dwarf2/read.c (read_array_order): Update for call to
array_ordering.
* f-lang.c (f_language_data): Remove la_array_ordering
initializer.
(f_language::array_ordering): New member function.
* go-lang.c (go_language_data): Remove la_array_ordering
initializer.
* language.c (unknown_language_data): Likewise.
(auto_language_data): Likewise.
* language.h (language_data): Delete la_array_ordering field.
(language_defn::array_ordering): New member function.
* m2-lang.c (m2_language_data): Remove la_array_ordering
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.
Diffstat (limited to 'gdb/language.h')
-rw-r--r-- | gdb/language.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/language.h b/gdb/language.h index b6d1d15..5ec5daa 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -168,9 +168,6 @@ extern const char *default_word_break_characters (void); struct language_data { - /* Multi-dimensional array ordering. */ - enum array_ordering la_array_ordering; - /* Style of macro expansion, if any, supported by this language. */ enum macro_expansion la_macro_expansion; @@ -559,6 +556,12 @@ struct language_defn : language_data virtual enum case_sensitivity case_sensitivity () const { return case_sensitive_on; } + + /* Multi-dimensional array ordering. */ + + virtual enum array_ordering array_ordering () const + { return array_row_major; } + protected: /* This is the overridable part of the GET_SYMBOL_NAME_MATCHER method. |