From a09613154576215d3198b82ab66cd0e0b78e3e34 Mon Sep 17 00:00:00 2001 From: Jordan Rupprecht Date: Tue, 18 Oct 2022 08:45:10 -0700 Subject: [PATCH] [Bazel] Add target for llvm-debuginfo-analyzer binary --- utils/bazel/llvm-project-overlay/llvm/BUILD.bazel | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel index 3f9301b..68b90e1 100644 --- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel @@ -418,6 +418,22 @@ cc_library( ) cc_library( + name = "DebugInfoLogicalView", + srcs = glob([ + "lib/DebugInfo/LogicalView/**/*.cpp", + ]), + hdrs = glob([ + "include/llvm/DebugInfo/LogicalView/**/*.h", + ]), + copts = llvm_copts, + deps = [ + ":MC", + ":Object", + ":Support", + ], +) + +cc_library( name = "DebugInfoPDB", srcs = glob([ "lib/DebugInfo/PDB/*.cpp", @@ -3003,6 +3019,22 @@ cc_binary( ) cc_binary( + name = "llvm-debuginfo-analyzer", + srcs = glob([ + "tools/llvm-debuginfo-analyzer/*.cpp", + "tools/llvm-debuginfo-analyzer/*.h", + ]), + copts = llvm_copts, + stamp = 0, + deps = [ + ":AllTargetsCodeGens", + ":AllTargetsDisassemblers", + ":DebugInfoLogicalView", + ":Support", + ], +) + +cc_binary( name = "llvm-debuginfod-find", srcs = glob([ "tools/llvm-debuginfod-find/*.cpp", -- 2.7.4