aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-12-22 22:06:52 -0500
committerMike Frysinger <vapier@gentoo.org>2022-12-22 22:06:52 -0500
commitb15fa15bc40d561ed937ade95b5340f4b2de9795 (patch)
treefc972b660f4ee1cdfb0578851d77ceef20fbb4cf /sim
parent6cf3ddd23ec1cf33f4b9f82d267e79741a2fdc48 (diff)
downloadgdb-b15fa15bc40d561ed937ade95b5340f4b2de9795.zip
gdb-b15fa15bc40d561ed937ade95b5340f4b2de9795.tar.gz
gdb-b15fa15bc40d561ed937ade95b5340f4b2de9795.tar.bz2
sim: endian: move bfd.h from header to source
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.
Diffstat (limited to 'sim')
-rw-r--r--sim/common/sim-endian.c2
-rw-r--r--sim/common/sim-endian.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/sim-endian.c b/sim/common/sim-endian.c
index 647795b..92c6618 100644
--- a/sim/common/sim-endian.c
+++ b/sim/common/sim-endian.c
@@ -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"
diff --git a/sim/common/sim-endian.h b/sim/common/sim-endian.h
index 9d46db2..b6d97f5 100644
--- a/sim/common/sim-endian.h
+++ b/sim/common/sim-endian.h
@@ -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);