Needed for check-llvm.
This is the last target reading llvm_install_binutils_symlinks.
Differential Revision: https://reviews.llvm.org/D56190
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350215
91177308-0d34-0410-b5e6-
96231b3b80d8
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",
"//llvm/tools/llvm-nm:symlinks",
]
}
+group("llvm-cxxfilt") {
+ deps = [
+ "//llvm/tools/llvm-cxxfilt:symlinks",
+ ]
+}
group("llvm-objcopy") {
deps = [
"//llvm/tools/llvm-objcopy:symlinks",
--- /dev/null
+executable("llvm-cxxdump") {
+ deps = [
+ "//llvm/lib/Object",
+ "//llvm/lib/Support",
+ "//llvm/lib/Target:TargetsToBuild",
+ ]
+ sources = [
+ "Error.cpp",
+ "llvm-cxxdump.cpp",
+ ]
+}
--- /dev/null
+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",
+ ]
+}
--- /dev/null
+executable("llvm-cxxmap") {
+ deps = [
+ "//llvm/lib/IR",
+ "//llvm/lib/Support",
+ "//llvm/lib/Target:TargetsToBuild",
+ ]
+ sources = [
+ "llvm-cxxmap.cpp",
+ ]
+}