diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel @@ -497,6 +497,22 @@ ], ) +cc_library( + name = "DebugInfoGSYM", + srcs = glob([ + "lib/DebugInfo/GSYM/*.cpp", + "lib/DebugInfo/GSYM/*.h", + ]), + hdrs = glob(["include/llvm/DebugInfo/GSYM/*.h"]), + copts = llvm_copts, + deps = [ + ":DebugInfoDWARF", + ":MC", + ":Object", + ":Support", + ], +) + cc_library( name = "Symbolize", srcs = glob([ @@ -3112,6 +3128,25 @@ ], ) +cc_binary( + name = "llvm-gsymutil", + srcs = glob([ + "tools/llvm-gsymutil/*.cpp", + "tools/llvm-gsymutil/*.h", + ]), + copts = llvm_copts, + stamp = 0, + deps = [ + ":AllTargetsCodeGens", + ":DebugInfoDWARF", + ":DebugInfoGSYM", + ":MC", + ":Object", + ":Support", + ":Target", + ], +) + gentbl( name = "IfsOptionsTableGen", strip_include_prefix = "tools/llvm-ifs",