sim: endian: move bfd.h from header to source
authorMike Frysinger <vapier@gentoo.org>
Fri, 23 Dec 2022 03:06:52 +0000 (22:06 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 23 Dec 2022 03:06:52 +0000 (22:06 -0500)
The bfd APIs are used only by sim-n-endian.h which is only included by
sim-endian.c, so move the bfd.h include there and out of sim-endian.h
which is included by many other modules.

sim/common/sim-endian.c
sim/common/sim-endian.h

index 647795b37e4ef4c913d8d16b507e826eebcd8b45..92c66182916516c61008ddcc251ca0ba6dd2198f 100644 (file)
@@ -26,6 +26,8 @@
 /* This must come before any other includes.  */
 #include "defs.h"
 
+#include "bfd.h"
+
 #include "sim-basics.h"
 #include "sim-assert.h"
 
index 9d46db2b18f7d05baefb260318538f384f114493..b6d97f5c1440c9265af93c7705a872a363a2de6a 100644 (file)
@@ -23,8 +23,6 @@
 #ifndef SIM_ENDIAN_H
 #define SIM_ENDIAN_H
 
-#include "bfd.h"
-
 /* C byte conversion functions */
 
 INLINE_SIM_ENDIAN(unsigned_1) endian_h2t_1(unsigned_1 x);