svn commit: r357158 - in projects/clang1000-import: lib/clang/libllvm usr.bin/clang/llvm-objcopy usr.bin/clang/llvm-pdbutil usr.bin/clang/opt

Dimitry Andric dim at FreeBSD.org
Sun Jan 26 20:57:30 UTC 2020


Author: dim
Date: Sun Jan 26 20:57:29 2020
New Revision: 357158
URL: https://svnweb.freebsd.org/changeset/base/357158

Log:
  Update build glue for extra clang/llvm tools (MK_CLANG_EXTRAS=yes).

Modified:
  projects/clang1000-import/lib/clang/libllvm/Makefile
  projects/clang1000-import/usr.bin/clang/llvm-objcopy/Makefile
  projects/clang1000-import/usr.bin/clang/llvm-pdbutil/Makefile
  projects/clang1000-import/usr.bin/clang/opt/Makefile

Modified: projects/clang1000-import/lib/clang/libllvm/Makefile
==============================================================================
--- projects/clang1000-import/lib/clang/libllvm/Makefile	Sun Jan 26 19:37:46 2020	(r357157)
+++ projects/clang1000-import/lib/clang/libllvm/Makefile	Sun Jan 26 20:57:29 2020	(r357158)
@@ -564,6 +564,14 @@ SRCS_XDB+=	ExecutionEngine/GDBRegistrationListener.cpp
 SRCS_XDB+=	ExecutionEngine/Interpreter/Execution.cpp
 SRCS_XDB+=	ExecutionEngine/Interpreter/ExternalFunctions.cpp
 SRCS_XDB+=	ExecutionEngine/Interpreter/Interpreter.cpp
+SRCS_EXT+=	ExecutionEngine/JITLink/EHFrameSupport.cpp
+SRCS_EXT+=	ExecutionEngine/JITLink/JITLink.cpp
+SRCS_EXT+=	ExecutionEngine/JITLink/JITLinkGeneric.cpp
+SRCS_EXT+=	ExecutionEngine/JITLink/JITLinkMemoryManager.cpp
+SRCS_EXT+=	ExecutionEngine/JITLink/MachO.cpp
+SRCS_EXT+=	ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
+SRCS_EXT+=	ExecutionEngine/JITLink/MachO_arm64.cpp
+SRCS_EXT+=	ExecutionEngine/JITLink/MachO_x86_64.cpp
 SRCS_XDB+=	ExecutionEngine/MCJIT/MCJIT.cpp
 SRCS_EXT+=	ExecutionEngine/Orc/CompileOnDemandLayer.cpp
 SRCS_EXT+=	ExecutionEngine/Orc/CompileUtils.cpp
@@ -578,11 +586,16 @@ SRCS_EXT+=	ExecutionEngine/Orc/Layer.cpp
 SRCS_EXT+=	ExecutionEngine/Orc/LazyReexports.cpp
 SRCS_EXT+=	ExecutionEngine/Orc/Legacy.cpp
 SRCS_EXT+=	ExecutionEngine/Orc/NullResolver.cpp
+SRCS_EXT+=	ExecutionEngine/Orc/ObjectLinkingLayer.cpp
+SRCS_EXT+=	ExecutionEngine/Orc/ObjectTransformLayer.cpp
 SRCS_EXT+=	ExecutionEngine/Orc/OrcABISupport.cpp
 SRCS_EXT+=	ExecutionEngine/Orc/OrcCBindings.cpp
 SRCS_EXT+=	ExecutionEngine/Orc/OrcMCJITReplacement.cpp
 SRCS_EXT+=	ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp
+SRCS_EXT+=	ExecutionEngine/Orc/Speculation.cpp
 SRCS_EXT+=	ExecutionEngine/Orc/ThreadSafeModule.cpp
+SRCS_EXT+=	ExecutionEngine/OrcError/OrcError.cpp
+SRCS_EXT+=	ExecutionEngine/OrcError/RPCError.cpp
 SRCS_XDB+=	ExecutionEngine/RuntimeDyld/JITSymbol.cpp
 SRCS_XDB+=	ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp
 SRCS_XDB+=	ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
@@ -733,6 +746,7 @@ SRCS_MIN+=	MC/SubtargetFeature.cpp
 SRCS_MIN+=	MC/WasmObjectWriter.cpp
 SRCS_MIN+=	MC/WinCOFFObjectWriter.cpp
 SRCS_MIN+=	MC/XCOFFObjectWriter.cpp
+SRCS_EXT+=	MCA/CodeEmitter.cpp
 SRCS_EXT+=	MCA/Context.cpp
 SRCS_EXT+=	MCA/HWEventListener.cpp
 SRCS_EXT+=	MCA/HardwareUnits/HardwareUnit.cpp
@@ -1506,6 +1520,7 @@ SRCS_MIN+=	Transforms/Utils/CloneModule.cpp
 SRCS_MIN+=	Transforms/Utils/CodeExtractor.cpp
 SRCS_MIN+=	Transforms/Utils/CodeMoverUtils.cpp
 SRCS_MIN+=	Transforms/Utils/CtorUtils.cpp
+SRCS_EXT+=	Transforms/Utils/Debugify.cpp
 SRCS_MIN+=	Transforms/Utils/DemoteRegToStack.cpp
 SRCS_MIN+=	Transforms/Utils/EntryExitInstrumenter.cpp
 SRCS_MIN+=	Transforms/Utils/EscapeEnumerator.cpp

Modified: projects/clang1000-import/usr.bin/clang/llvm-objcopy/Makefile
==============================================================================
--- projects/clang1000-import/usr.bin/clang/llvm-objcopy/Makefile	Sun Jan 26 19:37:46 2020	(r357157)
+++ projects/clang1000-import/usr.bin/clang/llvm-objcopy/Makefile	Sun Jan 26 20:57:29 2020	(r357158)
@@ -10,8 +10,10 @@ SRCS+=		COFF/Object.cpp
 SRCS+=		COFF/Reader.cpp
 SRCS+=		COFF/Writer.cpp
 SRCS+=		CopyConfig.cpp
+SRCS+=		ELF/ELFConfig.cpp
 SRCS+=		ELF/ELFObjcopy.cpp
 SRCS+=		ELF/Object.cpp
+SRCS+=		MachO/MachOLayoutBuilder.cpp
 SRCS+=		MachO/MachOObjcopy.cpp
 SRCS+=		MachO/MachOReader.cpp
 SRCS+=		MachO/MachOWriter.cpp
@@ -25,11 +27,11 @@ CFLAGS+=	-I${LLVM_BASE}/${SRCDIR}
 
 .include "${SRCTOP}/lib/clang/llvm.build.mk"
 
-.for hdr in ObjcopyOpts StripOpts
+.for hdr in InstallNameToolOpts ObjcopyOpts StripOpts
 ${hdr}.inc: ${LLVM_BASE}/${SRCDIR}/${hdr}.td
 	${LLVM_TBLGEN} -gen-opt-parser-defs \
-	    -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \
-	    ${LLVM_BASE}/${SRCDIR}/${hdr}.td
+	    -I ${LLVM_SRCS}/tools/llvm-objcopy -I ${LLVM_SRCS}/include \
+	    -d ${.TARGET}.d -o ${.TARGET} ${LLVM_BASE}/${SRCDIR}/${hdr}.td
 TGHDRS+=	${hdr}.inc
 .endfor
 

Modified: projects/clang1000-import/usr.bin/clang/llvm-pdbutil/Makefile
==============================================================================
--- projects/clang1000-import/usr.bin/clang/llvm-pdbutil/Makefile	Sun Jan 26 19:37:46 2020	(r357157)
+++ projects/clang1000-import/usr.bin/clang/llvm-pdbutil/Makefile	Sun Jan 26 20:57:29 2020	(r357158)
@@ -27,4 +27,6 @@ SRCS+=		TypeReferenceTracker.cpp
 SRCS+=		YAMLOutputStyle.cpp
 SRCS+=		llvm-pdbutil.cpp
 
+LIBADD+=	z
+
 .include "../llvm.prog.mk"

Modified: projects/clang1000-import/usr.bin/clang/opt/Makefile
==============================================================================
--- projects/clang1000-import/usr.bin/clang/opt/Makefile	Sun Jan 26 19:37:46 2020	(r357157)
+++ projects/clang1000-import/usr.bin/clang/opt/Makefile	Sun Jan 26 20:57:29 2020	(r357158)
@@ -5,7 +5,6 @@ PROG_CXX=	opt
 SRCDIR=		llvm/tools/opt
 SRCS+=		AnalysisWrappers.cpp
 SRCS+=		BreakpointPrinter.cpp
-SRCS+=		Debugify.cpp
 SRCS+=		GraphPrinters.cpp
 SRCS+=		NewPMDriver.cpp
 SRCS+=		PassPrinters.cpp


More information about the svn-src-projects mailing list