commit | 809f3be12c0621cbf071c585da5638f6841c38b1 | [log] [tgz] |
---|---|---|
author | Tom Tromey <tom@tromey.com> | Sat Sep 11 13:58:04 2021 -0600 |
committer | Tom Tromey <tom@tromey.com> | Thu Sep 23 15:11:00 2021 -0600 |
tree | c0a9beeebaf38da9fb3a3e7447f4cb18a624479f | |
parent | 0086a91ceef5207463a10c875ed85c40eb066722 [diff] |
Change pointer_type to a method of struct type I noticed that pointer_type is declared in language.h and defined in language.c. However, it really has to do with types, so it should have been in gdbtypes.h all along. This patch changes it to be a method on struct type. And, I went through uses of TYPE_IS_REFERENCE and updated many spots to use the new method as well. (I didn't update ones that were in arch-specific code, as I couldn't readily test that.)