Skip to content

Commit b15fa15

Browse files
committed
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.
1 parent 6cf3ddd commit b15fa15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sim/common/sim-endian.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
/* This must come before any other includes. */
2727
#include "defs.h"
2828

29+
#include "bfd.h"
30+
2931
#include "sim-basics.h"
3032
#include "sim-assert.h"
3133

sim/common/sim-endian.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
#ifndef SIM_ENDIAN_H
2424
#define SIM_ENDIAN_H
2525

26-
#include "bfd.h"
27-
2826
/* C byte conversion functions */
2927

3028
INLINE_SIM_ENDIAN(unsigned_1) endian_h2t_1(unsigned_1 x);

0 commit comments

Comments
 (0)