diff options
author | Tom Tromey <tromey@adacore.com> | 2023-10-27 10:51:50 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-11-21 14:52:05 -0700 |
commit | 5028c9e206efd6b92ecefe1afc9dcf5cd4ebb1a6 (patch) | |
tree | 7225d0eb8412c091c5fea6804061666a6afcbd05 /gdb/stabsread.c | |
parent | e17fd6c28e787445d496a71c855784010dfd6ab8 (diff) | |
download | binutils-5028c9e206efd6b92ecefe1afc9dcf5cd4ebb1a6.zip binutils-5028c9e206efd6b92ecefe1afc9dcf5cd4ebb1a6.tar.gz binutils-5028c9e206efd6b92ecefe1afc9dcf5cd4ebb1a6.tar.bz2 |
Use enum accessibility in types and member functions
This changes nested types and member functions to use the new
'accessibility' enum, rather than separate private/protected flags.
This is done for consistency, but it also lets us simplify some other
code in the next patch.
Acked-By: Simon Marchi <simon.marchi@efficios.com>
Reviewed-by: Keith Seitz <keiths@redhat.com>
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 4d5ae10..c81ae42 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -2372,10 +2372,10 @@ read_member_functions (struct stab_field_info *fip, const char **pp, switch (*(*pp)++) { case VISIBILITY_PRIVATE: - new_sublist->fn_field.is_private = 1; + new_sublist->fn_field.accessibility = accessibility::PRIVATE; break; case VISIBILITY_PROTECTED: - new_sublist->fn_field.is_protected = 1; + new_sublist->fn_field.accessibility = accessibility::PROTECTED; break; } |