Make block members 'private'

This changes block to make the data members 'private'.
This commit is contained in:
Tom Tromey
2023-01-20 07:20:38 -07:00
parent 522553837b
commit b32797e8b9

View File

@ -271,6 +271,12 @@ struct block : public allocate_on_obstack
struct dynamic_prop *static_link () const;
private:
/* If the namespace_info is NULL, allocate it via OBSTACK and
initialize its members to zero. */
void initialize_namespace (struct obstack *obstack);
/* Addresses in the executable code that are in this block. */
CORE_ADDR m_start = 0;
@ -303,12 +309,6 @@ struct block : public allocate_on_obstack
startaddr and endaddr above. */
struct blockranges *m_ranges = nullptr;
private:
/* If the namespace_info is NULL, allocate it via OBSTACK and
initialize its members to zero. */
void initialize_namespace (struct obstack *obstack);
};
/* The global block is singled out so that we can provide a back-link