diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel index 5add928714ae..f3fbb885de20 100644 --- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel @@ -913,6 +913,23 @@ cc_library( ], ) +cc_library( + name = "LLVMDWP", + srcs = glob([ + "lib/DWP/*.cpp", + "lib/DWP/*.h", + ]), + hdrs = glob(["include/llvm/DWP/*.h"]), + copts = llvm_copts, + deps = [ + ":DebugInfoDWARF", + ":MC", + ":Object", + ":Support", + ":Target", + ], +) + cc_library( name = "TransformUtils", srcs = glob([ @@ -2726,11 +2743,9 @@ cc_binary( stamp = 0, deps = [ ":AllTargetsCodeGens", - ":DebugInfoDWARF", + ":LLVMDWP", ":MC", - ":Object", ":Support", - ":Target", ], )