Make symtab members private

This rearranges symtab so that the private members appear at the end,
and then adds the "private" keyword.
This commit is contained in:
Tom Tromey
2024-06-05 08:55:21 -06:00
parent e433e995a9
commit 4408976055

View File

@@ -1765,15 +1765,6 @@ struct symtab
struct symtab *next;
/* Backlink to containing compunit symtab. */
struct compunit_symtab *m_compunit;
/* Table mapping core addresses to line numbers for this file.
Can be NULL if none. Never shared between different symtabs. */
const struct linetable *m_linetable;
/* Name of this source file, in a form appropriate to print to the user.
This pointer is never nullptr. */
@@ -1790,6 +1781,17 @@ struct symtab
This pointer is never nullptr.*/
const char *filename_for_id;
private:
/* Backlink to containing compunit symtab. */
struct compunit_symtab *m_compunit;
/* Table mapping core addresses to line numbers for this file.
Can be NULL if none. Never shared between different symtabs. */
const struct linetable *m_linetable;
/* Language of this source file. */
enum language m_language;