aboutsummaryrefslogtreecommitdiff
path: root/bfd/targets.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-09-19 12:15:16 +0930
committerAlan Modra <amodra@gmail.com>2019-09-20 18:04:02 +0930
commitaf30dc128be191dc6179763203035ff62c634284 (patch)
tree6d6f843bbfa3b1ae57bd6c2913b347b429a1ff3f /bfd/targets.c
parent00f93c449228e69f2161405b1f49b406e88785f0 (diff)
downloadgdb-af30dc128be191dc6179763203035ff62c634284.zip
gdb-af30dc128be191dc6179763203035ff62c634284.tar.gz
gdb-af30dc128be191dc6179763203035ff62c634284.tar.bz2
bfd macro conversion to inline functions, asymbol
* bfd-in.h (bfd_asymbol_section, bfd_asymbol_value, bfd_asymbol_name), (bfd_asymbol_bfd, bfd_asymbol_flavour, bfd_set_asymbol_name): Delete. * bfd.c (bfd_asymbol_section, bfd_asymbol_value, bfd_asymbol_name), (bfd_asymbol_bfd, bfd_set_asymbol_name): New inline functions. * targets.c (bfd_asymbol_flavour): Likewise. * bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/targets.c')
-rw-r--r--bfd/targets.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/targets.c b/bfd/targets.c
index 116a5c3..717657f 100644
--- a/bfd/targets.c
+++ b/bfd/targets.c
@@ -644,6 +644,14 @@ to find an alternative output format that is suitable.
. return abfd->xvec->symbol_leading_char;
.}
.
+.static inline enum bfd_flavour
+.bfd_asymbol_flavour (const asymbol *sy)
+.{
+. if ((sy->flags & BSF_SYNTHETIC) != 0)
+. return bfd_target_unknown_flavour;
+. return sy->the_bfd->xvec->flavour;
+.}
+.
*/
/* All known xvecs (even those that don't compile on all systems).