]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Make unlink_objfile and put_objfile_before static
authorTom Tromey <tom@tromey.com>
Mon, 21 Oct 2019 02:41:20 +0000 (20:41 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 21 Oct 2019 02:54:06 +0000 (20:54 -0600)
commit54d83b8d3920eea4a0d545f1ff7ac2923d938e6c
tree94a1661b2ea78234fb1d6cbe864da97ccda49ac9
parentfd65fe1a180695a3500135bac6d5ed6a70b874de
Make unlink_objfile and put_objfile_before static

I noticed an obsolete comment just before unlink_objfile, and then I
noticed that both unlink_objfile and put_objfile_before could be
static.  This patch makes these changes, and also moves unlink_objfile
earlier, so that a forward declaration is not needed.

Tested by rebuilding.

gdb/ChangeLog
2019-10-20  Tom Tromey  <tom@tromey.com>

* objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
* objfiles.c (unlink_objfile): Move earlier.  Now static.  Remove
obsolete comment.
(put_objfile_before): Now static.

Change-Id: I1b5927a60fd1cc59bfc9c6761f61652a01ef13e0
gdb/ChangeLog
gdb/objfiles.c
gdb/objfiles.h