| From 9851d533c246b3210f26cd6214877ccf1c42476a Mon Sep 17 00:00:00 2001 |
| From: Ian Rogers <irogers@google.com> |
| Date: Mon, 11 Sep 2023 17:36:03 -0700 |
| Subject: [PATCH 2/2] Add google-dependency-inject.h includes |
| |
| The inclusion of google-dependency-inject.h is used to trick blaze's |
| header file analysis to find dependencies of certain .c and .h |
| files. This is necessary as the actual #includes use a #include of |
| --- |
| backends/common-reloc.c | 3 +++ |
| libcpu/i386_disasm.c | 3 +++ |
| libcpu/i386_mne.h | 3 +++ |
| 3 files changed, 9 insertions(+) |
| |
| diff --git a/backends/common-reloc.c b/backends/common-reloc.c |
| index a91bc87d..b780bfea 100644 |
| --- a/backends/common-reloc.c |
| +++ b/backends/common-reloc.c |
| @@ -26,6 +26,9 @@ |
| the GNU Lesser General Public License along with this program. If |
| not, see <http://www.gnu.org/licenses/>. */ |
| |
| +// GOOGLE |
| +#include "google-dependency-inject.h" |
| + |
| #include "libebl_CPU.h" |
| #include <assert.h> |
| |
| diff --git a/libcpu/i386_disasm.c b/libcpu/i386_disasm.c |
| index dec62bfa..daa5b3d2 100644 |
| --- a/libcpu/i386_disasm.c |
| +++ b/libcpu/i386_disasm.c |
| @@ -27,6 +27,9 @@ |
| the GNU Lesser General Public License along with this program. If |
| not, see <http://www.gnu.org/licenses/>. */ |
| |
| +// GOOGLE |
| +#include "google-dependency-inject.h" |
| + |
| #ifdef HAVE_CONFIG_H |
| # include <config.h> |
| #endif |
| diff --git a/libcpu/i386_mne.h b/libcpu/i386_mne.h |
| index d5157515..dd10a4b0 100644 |
| --- a/libcpu/i386_mne.h |
| +++ b/libcpu/i386_mne.h |
| @@ -29,6 +29,9 @@ |
| #ifndef _I386_MNE_H |
| #define _I386_MNE_H 1 |
| |
| +// GOOGLE |
| +#include "google-dependency-inject.h" |
| + |
| #ifndef MNEFILE |
| # define MNEFILE "i386.mnemonics" |
| #endif |
| -- |
| 2.42.0.283.g2d96d420d3-goog |
| |