[Bazel] Add include/llvm/Transforms/Utils/ModuleUtils.h to work around layer violation after D116542

There is a layer violation and can break clang -fmodule-name=X -fmodules-strict-decluse builds:

* LLVMTransformUtils has `#include "llvm/Bitcode/BitcodeWriterPass.h"`
* LLVMBitWriter depends on LLVMTransformUtils after D116542

Temporarily work around the issue.
This commit is contained in:
Fangrui Song 2022-01-31 15:41:45 -08:00
parent 8a9e4f245b
commit 2d5f857a1e
1 changed files with 1 additions and 0 deletions

View File

@ -904,6 +904,7 @@ cc_library(
"include/llvm/Bitcode/BitcodeWriter.h",
"include/llvm/Bitcode/BitcodeWriterPass.h",
"include/llvm/Bitcode/LLVMBitCodes.h",
"include/llvm/Transforms/Utils/ModuleUtils.h",
],
copts = llvm_copts,
deps = [