From 006dcf6159e9ed720695bef0a68cb710ee763dda Mon Sep 17 00:00:00 2001 From: dim Date: Mon, 26 Aug 2019 20:57:45 +0000 Subject: [PATCH] Add lldb-tblgen tool. --- usr.bin/clang/Makefile | 4 ++++ usr.bin/clang/lldb-tblgen/Makefile | 10 ++++++++++ usr.bin/clang/llvm.prog.mk | 3 ++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 usr.bin/clang/lldb-tblgen/Makefile diff --git a/usr.bin/clang/Makefile b/usr.bin/clang/Makefile index 37574381ad3d..b0a46157685f 100644 --- a/usr.bin/clang/Makefile +++ b/usr.bin/clang/Makefile @@ -6,6 +6,10 @@ SUBDIR+= clang SUBDIR+= clang-tblgen SUBDIR+= llvm-tblgen +.if ${MK_LLDB} != "no" +SUBDIR+= lldb-tblgen +.endif + .if !defined(TOOLS_PREFIX) SUBDIR+= llvm-ar SUBDIR+= llvm-nm diff --git a/usr.bin/clang/lldb-tblgen/Makefile b/usr.bin/clang/lldb-tblgen/Makefile new file mode 100644 index 000000000000..a5157d2c3a1c --- /dev/null +++ b/usr.bin/clang/lldb-tblgen/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +PROG_CXX= lldb-tblgen +MAN= + +SRCDIR= tools/lldb/utils/TableGen +SRCS+= LLDBOptionDefEmitter.cpp +SRCS+= LLDBTableGen.cpp + +.include "../llvm.prog.mk" diff --git a/usr.bin/clang/llvm.prog.mk b/usr.bin/clang/llvm.prog.mk index 50a4f8a0f3f5..58fd3eedd113 100644 --- a/usr.bin/clang/llvm.prog.mk +++ b/usr.bin/clang/llvm.prog.mk @@ -8,7 +8,8 @@ CFLAGS+= -I${OBJTOP}/lib/clang/libllvm # Special case for the bootstrap-tools phase. .if (defined(TOOLS_PREFIX) || ${MACHINE} == "host") && \ - (${PROG_CXX} == "clang-tblgen" || ${PROG_CXX} == "llvm-tblgen") + (${PROG_CXX} == "clang-tblgen" || ${PROG_CXX} == "lldb-tblgen" || \ + ${PROG_CXX} == "llvm-tblgen") LIBDEPS+= llvmminimal .else LIBDEPS+= llvm