From 281264c5d1cf715b179aa0d8ea31fb0e5faedfee Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 4 Jan 2017 21:47:39 +0000 Subject: [PATCH] Add new llvm-{cxxfilt,lto2,modextract,xray} tools. --- tools/build/mk/OptionalObsoleteFiles.inc | 4 +++ usr.bin/clang/Makefile | 4 +++ usr.bin/clang/llvm-cxxfilt/Makefile | 11 ++++++++ usr.bin/clang/llvm-cxxfilt/Makefile.depend | 25 +++++++++++++++++++ usr.bin/clang/llvm-lto2/Makefile | 11 ++++++++ usr.bin/clang/llvm-lto2/Makefile.depend | 25 +++++++++++++++++++ usr.bin/clang/llvm-modextract/Makefile | 11 ++++++++ usr.bin/clang/llvm-modextract/Makefile.depend | 25 +++++++++++++++++++ usr.bin/clang/llvm-xray/Makefile | 13 ++++++++++ usr.bin/clang/llvm-xray/Makefile.depend | 25 +++++++++++++++++++ 10 files changed, 154 insertions(+) create mode 100644 usr.bin/clang/llvm-cxxfilt/Makefile create mode 100644 usr.bin/clang/llvm-cxxfilt/Makefile.depend create mode 100644 usr.bin/clang/llvm-lto2/Makefile create mode 100644 usr.bin/clang/llvm-lto2/Makefile.depend create mode 100644 usr.bin/clang/llvm-modextract/Makefile create mode 100644 usr.bin/clang/llvm-modextract/Makefile.depend create mode 100644 usr.bin/clang/llvm-xray/Makefile create mode 100644 usr.bin/clang/llvm-xray/Makefile.depend diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index 2e3010eca614..d81de2803e3a 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -1481,17 +1481,21 @@ OLD_FILES+=usr/bin/llvm-ar OLD_FILES+=usr/bin/llvm-as OLD_FILES+=usr/bin/llvm-bcanalyzer OLD_FILES+=usr/bin/llvm-cxxdump +OLD_FILES+=usr/bin/llvm-cxxfilt OLD_FILES+=usr/bin/llvm-diff OLD_FILES+=usr/bin/llvm-dis OLD_FILES+=usr/bin/llvm-dwarfdump OLD_FILES+=usr/bin/llvm-extract OLD_FILES+=usr/bin/llvm-link OLD_FILES+=usr/bin/llvm-lto +OLD_FILES+=usr/bin/llvm-lto2 OLD_FILES+=usr/bin/llvm-mc +OLD_FILES+=usr/bin/llvm-modextract OLD_FILES+=usr/bin/llvm-nm OLD_FILES+=usr/bin/llvm-pdbdump OLD_FILES+=usr/bin/llvm-rtdyld OLD_FILES+=usr/bin/llvm-symbolizer +OLD_FILES+=usr/bin/llvm-xray OLD_FILES+=usr/bin/opt OLD_FILES+=usr/share/man/man1/bugpoint.1.gz OLD_FILES+=usr/share/man/man1/llc.1.gz diff --git a/usr.bin/clang/Makefile b/usr.bin/clang/Makefile index 0bb49aa43ed2..746d062e57aa 100644 --- a/usr.bin/clang/Makefile +++ b/usr.bin/clang/Makefile @@ -19,18 +19,22 @@ SUBDIR+= llvm-as SUBDIR+= llvm-bcanalyzer SUBDIR+= llvm-cov SUBDIR+= llvm-cxxdump +SUBDIR+= llvm-cxxfilt SUBDIR+= llvm-diff SUBDIR+= llvm-dis SUBDIR+= llvm-dwarfdump SUBDIR+= llvm-extract SUBDIR+= llvm-link SUBDIR+= llvm-lto +SUBDIR+= llvm-lto2 SUBDIR+= llvm-mc +SUBDIR+= llvm-modextract SUBDIR+= llvm-nm SUBDIR+= llvm-pdbdump SUBDIR+= llvm-profdata SUBDIR+= llvm-rtdyld SUBDIR+= llvm-symbolizer +SUBDIR+= llvm-xray SUBDIR+= opt .endif diff --git a/usr.bin/clang/llvm-cxxfilt/Makefile b/usr.bin/clang/llvm-cxxfilt/Makefile new file mode 100644 index 000000000000..dce1c2efdaf0 --- /dev/null +++ b/usr.bin/clang/llvm-cxxfilt/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +PROG_CXX= llvm-cxxfilt +MAN= + +SRCDIR= tools/llvm-cxxfilt +SRCS+= llvm-cxxfilt.cpp + +LIBADD+= z + +.include "../llvm.prog.mk" diff --git a/usr.bin/clang/llvm-cxxfilt/Makefile.depend b/usr.bin/clang/llvm-cxxfilt/Makefile.depend new file mode 100644 index 000000000000..3fd78c934924 --- /dev/null +++ b/usr.bin/clang/llvm-cxxfilt/Makefile.depend @@ -0,0 +1,25 @@ +# $FreeBSD$ +# Autogenerated - do NOT edit! + +DIRDEPS = \ + gnu/lib/csu \ + gnu/lib/libgcc \ + include \ + include/xlocale \ + lib/${CSU_DIR} \ + lib/clang/libllvm \ + lib/libc \ + lib/libc++ \ + lib/libcompiler_rt \ + lib/libcxxrt \ + lib/libthr \ + lib/libz \ + lib/msun \ + lib/ncurses/ncursesw \ + + +.include + +.if ${DEP_RELDIR} == ${_DEP_RELDIR} +# local dependencies - needed for -jN in clean tree +.endif diff --git a/usr.bin/clang/llvm-lto2/Makefile b/usr.bin/clang/llvm-lto2/Makefile new file mode 100644 index 000000000000..7e67c1bae972 --- /dev/null +++ b/usr.bin/clang/llvm-lto2/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +PROG_CXX= llvm-lto2 +MAN= + +SRCDIR= tools/llvm-lto2 +SRCS= llvm-lto2.cpp + +LIBADD+= z + +.include "../llvm.prog.mk" diff --git a/usr.bin/clang/llvm-lto2/Makefile.depend b/usr.bin/clang/llvm-lto2/Makefile.depend new file mode 100644 index 000000000000..3fd78c934924 --- /dev/null +++ b/usr.bin/clang/llvm-lto2/Makefile.depend @@ -0,0 +1,25 @@ +# $FreeBSD$ +# Autogenerated - do NOT edit! + +DIRDEPS = \ + gnu/lib/csu \ + gnu/lib/libgcc \ + include \ + include/xlocale \ + lib/${CSU_DIR} \ + lib/clang/libllvm \ + lib/libc \ + lib/libc++ \ + lib/libcompiler_rt \ + lib/libcxxrt \ + lib/libthr \ + lib/libz \ + lib/msun \ + lib/ncurses/ncursesw \ + + +.include + +.if ${DEP_RELDIR} == ${_DEP_RELDIR} +# local dependencies - needed for -jN in clean tree +.endif diff --git a/usr.bin/clang/llvm-modextract/Makefile b/usr.bin/clang/llvm-modextract/Makefile new file mode 100644 index 000000000000..30ac2f61c239 --- /dev/null +++ b/usr.bin/clang/llvm-modextract/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +PROG_CXX= llvm-modextract +MAN= + +SRCDIR= tools/llvm-modextract +SRCS= llvm-modextract.cpp + +LIBADD+= z + +.include "../llvm.prog.mk" diff --git a/usr.bin/clang/llvm-modextract/Makefile.depend b/usr.bin/clang/llvm-modextract/Makefile.depend new file mode 100644 index 000000000000..3fd78c934924 --- /dev/null +++ b/usr.bin/clang/llvm-modextract/Makefile.depend @@ -0,0 +1,25 @@ +# $FreeBSD$ +# Autogenerated - do NOT edit! + +DIRDEPS = \ + gnu/lib/csu \ + gnu/lib/libgcc \ + include \ + include/xlocale \ + lib/${CSU_DIR} \ + lib/clang/libllvm \ + lib/libc \ + lib/libc++ \ + lib/libcompiler_rt \ + lib/libcxxrt \ + lib/libthr \ + lib/libz \ + lib/msun \ + lib/ncurses/ncursesw \ + + +.include + +.if ${DEP_RELDIR} == ${_DEP_RELDIR} +# local dependencies - needed for -jN in clean tree +.endif diff --git a/usr.bin/clang/llvm-xray/Makefile b/usr.bin/clang/llvm-xray/Makefile new file mode 100644 index 000000000000..cefd83ec77c5 --- /dev/null +++ b/usr.bin/clang/llvm-xray/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +PROG_CXX= llvm-xray +MAN= + +SRCDIR= tools/llvm-xray +SRCS+= llvm-xray.cc +SRCS+= xray-extract.cc +SRCS+= xray-registry.cc + +LIBADD+= z + +.include "../llvm.prog.mk" diff --git a/usr.bin/clang/llvm-xray/Makefile.depend b/usr.bin/clang/llvm-xray/Makefile.depend new file mode 100644 index 000000000000..3fd78c934924 --- /dev/null +++ b/usr.bin/clang/llvm-xray/Makefile.depend @@ -0,0 +1,25 @@ +# $FreeBSD$ +# Autogenerated - do NOT edit! + +DIRDEPS = \ + gnu/lib/csu \ + gnu/lib/libgcc \ + include \ + include/xlocale \ + lib/${CSU_DIR} \ + lib/clang/libllvm \ + lib/libc \ + lib/libc++ \ + lib/libcompiler_rt \ + lib/libcxxrt \ + lib/libthr \ + lib/libz \ + lib/msun \ + lib/ncurses/ncursesw \ + + +.include + +.if ${DEP_RELDIR} == ${_DEP_RELDIR} +# local dependencies - needed for -jN in clean tree +.endif