diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel @@ -187,7 +187,6 @@ hdrs = glob([ "include/llvm/Support/**/*.h", "include/llvm/ADT/*.h", - "include/llvm/MC/*.h", # TODO(maskray): Fix the layering issue. ]) + [ "include/llvm-c/Core.h", "include/llvm-c/DataTypes.h", @@ -453,6 +452,10 @@ "utils/TableGen/*.cpp", "utils/TableGen/GlobalISel/*.cpp", + # Some tablegen sources include headers from MC, so these have to be + # listed here. + "include/llvm/MC/*.h", + # We have to include these headers here as well as in the `hdrs` below # to allow the `.cpp` files to use file-relative-inclusion to find # them, even though consumers of this library use inclusion relative to