[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 3f9301b746cb9204a65d6fc1da5e2947ea9b848d..68b90e19fc041bba1658c80a3ca484863c609ffb 100644 (file)
@@ -417,6 +417,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([
@@ -3002,6 +3018,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([