]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: add ctf_forwardable_kind
authorNick Alcock <nick.alcock@oracle.com>
Wed, 3 Jun 2020 12:23:42 +0000 (13:23 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 16:57:48 +0000 (17:57 +0100)
commit9850ce4d7bb89d4f9216dd5eebc88156bf31b70b
tree76da014bb6484adce339dc3d24fa3fee4b971907
parent2c9ca36be17839467dc88dd8c857bb3226f782e6
libctf: add ctf_forwardable_kind

The internals of the deduplicator want to know if something is a type
that can have a forward to it fairly often, often enough that inlining
it brings a noticeable performance gain.  Convert the one place in
libctf that can already benefit, even though it doesn't bring any sort
of performance gain there.

libctf/
* ctf-inlines.h (ctf_forwardable_kind): New.
* ctf-create.c (ctf_add_forward): Use it.
libctf/ChangeLog
libctf/ctf-create.c
libctf/ctf-inlines.h