[bazel] Fix layering check after 0610e2f
authorChristian Sigg <csigg@google.com>
Mon, 1 May 2023 10:04:32 +0000 (12:04 +0200)
committerChristian Sigg <csigg@google.com>
Mon, 1 May 2023 10:46:39 +0000 (12:46 +0200)
`BytecodeWriter.h` is now included in `IR.h`, and the corresponding dependency should be moved to `header_deps`. This change fixes Google's internal build, which seems to have a stricter layering check than bazel's, but it's still the right thing to do.

Differential Revision: https://reviews.llvm.org/D149576

utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

index dfa8f43..7ed2f9a 100644 (file)
@@ -372,6 +372,7 @@ mlir_c_api_cc_library(
         "include/mlir/CAPI/Wrap.h",
     ],
     header_deps = [
+        ":BytecodeWriter",
         ":IR",
         ":Pass",
         ":Support",
@@ -380,7 +381,6 @@ mlir_c_api_cc_library(
     includes = ["include"],
     deps = [
         ":AsmParser",
-        ":BytecodeWriter",
         ":ConversionPassIncGen",
         ":FuncDialect",
         ":InferTypeOpInterface",