[24/59] libctf: move existing inlines into ctf-inlines.h

Message ID 20200630233146.338613-25-nick.alcock@oracle.com
State New
Headers show
Series
  • Deduplicating CTF linker
Related show

Commit Message

H.J. Lu via Binutils June 30, 2020, 11:31 p.m.
Just housekeeping.

libctf/
	* ctf-impl.h (ctf_get_ctt_size): Move definition from here...
	* ctf-inlines.h (ctf_get_ctt_size): ... to here.
---
 libctf/ctf-impl.h    | 8 --------
 libctf/ctf-inlines.h | 9 +++++++++
 2 files changed, 9 insertions(+), 8 deletions(-)

-- 
2.27.0.247.g3dff7de930

Patch

diff --git a/libctf/ctf-impl.h b/libctf/ctf-impl.h
index 7d583ab6679..81a3c62dcfc 100644
--- a/libctf/ctf-impl.h
+++ b/libctf/ctf-impl.h
@@ -352,14 +352,6 @@  struct ctf_archive_internal
 #define LCTF_VBYTES(fp, kind, size, vlen) \
   ((fp)->ctf_fileops->ctfo_get_vbytes(kind, size, vlen))
 
-static inline ssize_t ctf_get_ctt_size (const ctf_file_t *fp,
-					const ctf_type_t *tp,
-					ssize_t *sizep,
-					ssize_t *incrementp)
-{
-  return (fp->ctf_fileops->ctfo_get_ctt_size (fp, tp, sizep, incrementp));
-}
-
 #define LCTF_CHILD	0x0001	/* CTF container is a child */
 #define LCTF_RDWR	0x0002	/* CTF container is writable */
 #define LCTF_DIRTY	0x0004	/* CTF container has been modified */
diff --git a/libctf/ctf-inlines.h b/libctf/ctf-inlines.h
index f9c1b2adbfb..4bec97b11b3 100644
--- a/libctf/ctf-inlines.h
+++ b/libctf/ctf-inlines.h
@@ -31,6 +31,15 @@  extern "C"
 #error "ctf-inlines.h" should not be included directly: include "ctf-impl.h".
 #endif
 
+static inline ssize_t
+ctf_get_ctt_size (const ctf_file_t *fp,
+		  const ctf_type_t *tp,
+		  ssize_t *sizep,
+		  ssize_t *incrementp)
+{
+  return (fp->ctf_fileops->ctfo_get_ctt_size (fp, tp, sizep, incrementp));
+}
+
 
 static inline int
 ctf_dynhash_cinsert (ctf_dynhash_t *h, const void *k, const void *v)