Skip to content

Commit

Permalink
sim: endian: move bfd.h from header to source
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vapier committed Dec 23, 2022
1 parent 6cf3ddd commit b15fa15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions sim/common/sim-endian.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 0 additions & 2 deletions sim/common/sim-endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b15fa15

Please sign in to comment.