[llvm] 90e40a0 - Rename "llvm-gsym" to "llvm-gsymutil" and fix dependencies.
Greg Clayton via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 14:13:41 PST 2020
Author: Greg Clayton
Date: 2020-03-03T14:13:29-08:00
New Revision: 90e40a0bdab6ab50402235f88941a4b10f5a17da
URL: https://github.com/llvm/llvm-project/commit/90e40a0bdab6ab50402235f88941a4b10f5a17da
DIFF: https://github.com/llvm/llvm-project/commit/90e40a0bdab6ab50402235f88941a4b10f5a17da.diff
LOG: Rename "llvm-gsym" to "llvm-gsymutil" and fix dependencies.
Summary: This patch renames the "llvm-gsym" tool directory to "llvm-gsymutil". Dependencies are also reduced to the bare minimum for llvm-gsymutil.
Reviewers: aprantl, thakis
Subscribers: mgorny, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D75291
Added:
llvm/tools/llvm-gsymutil/CMakeLists.txt
llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp
llvm/utils/gn/secondary/llvm/tools/llvm-gsymutil/BUILD.gn
Modified:
llvm/utils/gn/secondary/llvm/test/BUILD.gn
Removed:
llvm/tools/llvm-gsym/CMakeLists.txt
llvm/tools/llvm-gsym/llvm-gsymutil.cpp
llvm/utils/gn/secondary/llvm/tools/llvm-gsym/BUILD.gn
################################################################################
diff --git a/llvm/tools/llvm-gsym/CMakeLists.txt b/llvm/tools/llvm-gsymutil/CMakeLists.txt
similarity index 67%
rename from llvm/tools/llvm-gsym/CMakeLists.txt
rename to llvm/tools/llvm-gsymutil/CMakeLists.txt
index 38763b272a2e..d479a621f9c4 100644
--- a/llvm/tools/llvm-gsym/CMakeLists.txt
+++ b/llvm/tools/llvm-gsymutil/CMakeLists.txt
@@ -2,10 +2,6 @@ set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
DebugInfoDWARF
DebugInfoGSYM
- AsmPrinter
- AllTargetsDescs
- AllTargetsInfos
- MC
Object
Support
Target
@@ -14,6 +10,4 @@ set(LLVM_LINK_COMPONENTS
add_llvm_tool(llvm-gsymutil
llvm-gsymutil.cpp
- DEPENDS
- intrinsics_gen
)
diff --git a/llvm/tools/llvm-gsym/llvm-gsymutil.cpp b/llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp
similarity index 98%
rename from llvm/tools/llvm-gsym/llvm-gsymutil.cpp
rename to llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp
index a3be9e3149db..2d75473a3fdf 100644
--- a/llvm/tools/llvm-gsym/llvm-gsymutil.cpp
+++ b/llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp
@@ -1,4 +1,4 @@
-//===-- llvm-gsymutil.cpp - GSYM dumping and creation utility for llvm ----===//
+//===-- gsymutil.cpp - GSYM dumping and creation utility for llvm ---------===//
//
// The LLVM Compiler Infrastructure
//
@@ -431,10 +431,7 @@ int main(int argc, char const *argv[]) {
PrettyStackTraceProgram X(argc, argv);
llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
- llvm::InitializeAllTargetInfos();
- llvm::InitializeAllTargetMCs();
llvm::InitializeAllTargets();
- llvm::InitializeAllAsmPrinters();
const char *Overview =
"A tool for dumping, searching and creating GSYM files.\n\n"
diff --git a/llvm/utils/gn/secondary/llvm/test/BUILD.gn b/llvm/utils/gn/secondary/llvm/test/BUILD.gn
index 7aaaf867e119..bddf0b382424 100644
--- a/llvm/utils/gn/secondary/llvm/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/test/BUILD.gn
@@ -216,7 +216,7 @@ group("test") {
"//llvm/tools/llvm-elfabi",
"//llvm/tools/llvm-exegesis",
"//llvm/tools/llvm-extract",
- "//llvm/tools/llvm-gsym:llvm-gsymutil",
+ "//llvm/tools/llvm-gsymutil:llvm-gsymutil"
"//llvm/tools/llvm-ifs",
"//llvm/tools/llvm-isel-fuzzer",
"//llvm/tools/llvm-jitlink",
diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-gsym/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-gsymutil/BUILD.gn
similarity index 85%
rename from llvm/utils/gn/secondary/llvm/tools/llvm-gsym/BUILD.gn
rename to llvm/utils/gn/secondary/llvm/tools/llvm-gsymutil/BUILD.gn
index 248fc45315b3..4a35aa0d39a3 100644
--- a/llvm/utils/gn/secondary/llvm/tools/llvm-gsym/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-gsymutil/BUILD.gn
@@ -1,9 +1,7 @@
executable("llvm-gsymutil") {
deps = [
- "//llvm/lib/CodeGen/AsmPrinter",
"//llvm/lib/DebugInfo/DWARF",
"//llvm/lib/DebugInfo/GSYM",
- "//llvm/lib/MC",
"//llvm/lib/Object",
"//llvm/lib/Support",
"//llvm/lib/Target",
More information about the llvm-commits
mailing list