[llvm] [bazel] add bolt address translation header to Passes (PR #93014)

Mikhail Goncharov via llvm-commits llvm-commits at lists.llvm.org
Wed May 22 03:21:00 PDT 2024


https://github.com/metaflow created https://github.com/llvm/llvm-project/pull/93014

to avoid circular dependency introduced in a9b67490b2baaa311100a64191792186ea5f2c1e

>From 25c6a682fcfd73d99be08b21a019a8b214906a6b Mon Sep 17 00:00:00 2001
From: Mikhail Goncharov <goncharov.mikhail at gmail.com>
Date: Wed, 22 May 2024 12:19:10 +0200
Subject: [PATCH] [bazel] add bolt address translation header to Passes

to avoid circular dependency introduced in a9b67490b2baaa311100a64191792186ea5f2c1e
---
 utils/bazel/llvm-project-overlay/bolt/BUILD.bazel | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel b/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
index 1c12c8167ba46..7413b018ef329 100644
--- a/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
@@ -167,7 +167,10 @@ cc_library(
     ]),
     hdrs = glob([
         "include/bolt/Passes/*.h",
-    ]),
+    ]) + [
+        # To avoid circular dependency on "Profile".
+        "include/bolt/Profile/BoltAddressTranslation.h",
+    ],
     includes = ["include"],
     deps = [
         ":Core",



More information about the llvm-commits mailing list