[Bazel] Add target for llvm-debuginfo-analyzer binary
authorJordan Rupprecht <rupprecht@google.com>
Tue, 18 Oct 2022 15:45:10 +0000 (08:45 -0700)
committerJordan Rupprecht <rupprecht@google.com>
Tue, 18 Oct 2022 15:45:10 +0000 (08:45 -0700)
utils/bazel/llvm-project-overlay/llvm/BUILD.bazel

index 3f9301b..68b90e1 100644 (file)
@@ -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",