[llvm] r350215 - [gn build] Add some llvm/tools: llvm-cxxdump, llvm-cxxfilt, llvm-cxxmap

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 2 04:40:04 PST 2019


Author: nico
Date: Wed Jan  2 04:40:04 2019
New Revision: 350215

URL: http://llvm.org/viewvc/llvm-project?rev=350215&view=rev
Log:
[gn build] Add some llvm/tools: llvm-cxxdump, llvm-cxxfilt, llvm-cxxmap

Needed for check-llvm.

This is the last target reading llvm_install_binutils_symlinks.

Differential Revision: https://reviews.llvm.org/D56190

Added:
    llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxdump/
    llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxdump/BUILD.gn
    llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxfilt/
    llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxfilt/BUILD.gn
    llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxmap/
    llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxmap/BUILD.gn
Modified:
    llvm/trunk/utils/gn/secondary/BUILD.gn

Modified: llvm/trunk/utils/gn/secondary/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/BUILD.gn?rev=350215&r1=350214&r2=350215&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/BUILD.gn Wed Jan  2 04:40:04 2019
@@ -5,6 +5,9 @@ group("default") {
   deps = [
     "//clang/test",
     "//lld/test",
+    "//llvm/tools/llvm-cxxdump",
+    "//llvm/tools/llvm-cxxfilt",
+    "//llvm/tools/llvm-cxxmap",
     "//llvm/tools/llvm-diff",
     "//llvm/tools/llvm-dwp",
     "//llvm/tools/llvm-exegesis",
@@ -86,6 +89,11 @@ group("llvm-nm") {
     "//llvm/tools/llvm-nm:symlinks",
   ]
 }
+group("llvm-cxxfilt") {
+  deps = [
+    "//llvm/tools/llvm-cxxfilt:symlinks",
+  ]
+}
 group("llvm-objcopy") {
   deps = [
     "//llvm/tools/llvm-objcopy:symlinks",

Added: llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxdump/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxdump/BUILD.gn?rev=350215&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxdump/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxdump/BUILD.gn Wed Jan  2 04:40:04 2019
@@ -0,0 +1,11 @@
+executable("llvm-cxxdump") {
+  deps = [
+    "//llvm/lib/Object",
+    "//llvm/lib/Support",
+    "//llvm/lib/Target:TargetsToBuild",
+  ]
+  sources = [
+    "Error.cpp",
+    "llvm-cxxdump.cpp",
+  ]
+}

Added: llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxfilt/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxfilt/BUILD.gn?rev=350215&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxfilt/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxfilt/BUILD.gn Wed Jan  2 04:40:04 2019
@@ -0,0 +1,32 @@
+import("//llvm/tools/binutils_symlinks.gni")
+import("//llvm/utils/gn/build/symlink_or_copy.gni")
+
+if (llvm_install_binutils_symlinks) {
+  symlink_or_copy("cxxfilt") {  # Can't have '+' in target name.
+    deps = [
+      ":llvm-cxxfilt",
+    ]
+    source = "llvm-cxxfilt"
+    output = "$root_out_dir/bin/c++filt"  # Note: c++filt, not cxxfilt
+  }
+}
+
+# //:llvm-cxxfilt depends on this symlink target, see comment in //BUILD.gn.
+group("symlinks") {
+  deps = [
+    ":llvm-cxxfilt",
+  ]
+  if (llvm_install_binutils_symlinks) {
+    deps += [ ":cxxfilt" ]
+  }
+}
+
+executable("llvm-cxxfilt") {
+  deps = [
+    "//llvm/lib/Demangle",
+    "//llvm/lib/Support",
+  ]
+  sources = [
+    "llvm-cxxfilt.cpp",
+  ]
+}

Added: llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxmap/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxmap/BUILD.gn?rev=350215&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxmap/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/llvm/tools/llvm-cxxmap/BUILD.gn Wed Jan  2 04:40:04 2019
@@ -0,0 +1,10 @@
+executable("llvm-cxxmap") {
+  deps = [
+    "//llvm/lib/IR",
+    "//llvm/lib/Support",
+    "//llvm/lib/Target:TargetsToBuild",
+  ]
+  sources = [
+    "llvm-cxxmap.cpp",
+  ]
+}




More information about the llvm-commits mailing list