diff options
author | ngie <ngie@FreeBSD.org> | 2015-10-06 18:07:07 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-10-06 18:07:07 +0000 |
commit | 8cad7e1c527746c00149bc4b9faabc41bfa22295 (patch) | |
tree | a6af2a80dc1100522657881fa83c62e822491208 /lib | |
parent | e6340be3109a03f94d2fbcdfe635edf2c237915f (diff) | |
parent | a6f4f28b545e1f0632ba4b20b86a7ab487932373 (diff) | |
download | FreeBSD-src-8cad7e1c527746c00149bc4b9faabc41bfa22295.zip FreeBSD-src-8cad7e1c527746c00149bc4b9faabc41bfa22295.tar.gz |
MFhead @ r288943
clang 3.7.0 upgrade
Diffstat (limited to 'lib')
85 files changed, 668 insertions, 243 deletions
diff --git a/lib/clang/Makefile b/lib/clang/Makefile index a7513c3..88bc3b1 100644 --- a/lib/clang/Makefile +++ b/lib/clang/Makefile @@ -41,10 +41,12 @@ SUBDIR= libclanganalysis \ libllvmipa \ libllvmipo \ libllvmirreader \ + libllvmlibdriver \ libllvmlinker \ libllvmmc \ libllvmmcdisassembler \ libllvmmcparser \ + libllvmmirparser \ libllvmobjcarcopts \ libllvmobject \ libllvmoption \ @@ -60,7 +62,6 @@ SUBDIR= libclanganalysis \ libllvmaarch64asmparser \ libllvmaarch64codegen \ libllvmaarch64desc \ - libllvmaarch64disassembler \ libllvmaarch64info \ libllvmaarch64instprinter \ libllvmaarch64utils \ @@ -73,7 +74,6 @@ SUBDIR= libclanganalysis \ libllvmmipsasmparser \ libllvmmipscodegen \ libllvmmipsdesc \ - libllvmmipsdisassembler \ libllvmmipsinfo \ libllvmmipsinstprinter \ libllvmpowerpcasmparser \ @@ -85,25 +85,31 @@ SUBDIR= libclanganalysis \ libllvmsparcasmparser \ libllvmsparccodegen \ libllvmsparcdesc \ - libllvmsparcdisassembler \ libllvmsparcinfo \ libllvmsparcinstprinter \ libllvmx86asmparser \ libllvmx86codegen \ libllvmx86desc \ - libllvmx86disassembler \ libllvmx86info \ libllvmx86instprinter \ libllvmx86utils .if ${MK_CLANG_EXTRAS} != "no" -SUBDIR+=libllvmdebuginfo +SUBDIR+=libllvmdebuginfodwarf \ + libllvmdebuginfopdb \ + libllvmlto \ + libllvmorcjit \ + libllvmpasses .endif # MK_CLANG_EXTRAS .if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no" -SUBDIR+=libllvmexecutionengine \ +SUBDIR+=libllvmaarch64disassembler \ + libllvmexecutionengine \ libllvminterpreter \ libllvmmcjit \ - libllvmruntimedyld + libllvmmipsdisassembler \ + libllvmruntimedyld \ + libllvmsparcdisassembler \ + libllvmx86disassembler .endif # MK_CLANG_EXTRAS | LLDB .if ${MK_LLDB} != "no" @@ -118,11 +124,17 @@ SUBDIR+=liblldb \ liblldbHostCommon \ liblldbHostFreeBSD \ liblldbHostPOSIX \ + liblldbInitialization \ liblldbInterpreter \ liblldbSymbol \ liblldbTarget \ liblldbUtility \ \ + liblldbPluginABISysV_arm \ + liblldbPluginABISysV_arm64 \ + liblldbPluginABISysV_i386 \ + liblldbPluginABISysV_mips \ + liblldbPluginABISysV_mips64 \ liblldbPluginABISysV_ppc \ liblldbPluginABISysV_ppc64 \ liblldbPluginABISysV_x86_64 \ @@ -132,6 +144,8 @@ SUBDIR+=liblldb \ liblldbPluginDynamicLoaderPosixDYLD \ liblldbPluginInstructionARM \ liblldbPluginInstructionARM64 \ + liblldbPluginInstructionMIPS \ + liblldbPluginInstructionMIPS64 \ liblldbPluginInstrumentationRuntimeAddressSanitizer \ liblldbPluginJITLoaderGDB \ liblldbPluginMemoryHistoryASan \ diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk index 5cb0dd0..1610a90 100644 --- a/lib/clang/clang.build.mk +++ b/lib/clang/clang.build.mk @@ -227,11 +227,20 @@ Diagnostic${hdr}Kinds.inc.h: ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td -o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td .endfor +# XXX: Atrocious hack, need to clean this up later +.if defined(LIB) && ${LIB} == "llvmlibdriver" +Options.inc.h: ${LLVM_SRCS}/lib/LibDriver/Options.td + ${TBLGEN} -gen-opt-parser-defs \ + -I ${LLVM_SRCS}/include \ + -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \ + ${LLVM_SRCS}/lib/LibDriver/Options.td +.else Options.inc.h: ${CLANG_SRCS}/include/clang/Driver/Options.td ${TBLGEN} -gen-opt-parser-defs \ -I ${LLVM_SRCS}/include -I ${CLANG_SRCS}/include/clang/Driver \ -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \ ${CLANG_SRCS}/include/clang/Driver/Options.td +.endif Checkers.inc.h: ${CLANG_SRCS}/lib/StaticAnalyzer/Checkers/Checkers.td ${CLANG_TBLGEN} -gen-clang-sa-checkers \ diff --git a/lib/clang/include/Makefile b/lib/clang/include/Makefile index 6f679bb..1cea2e2 100644 --- a/lib/clang/include/Makefile +++ b/lib/clang/include/Makefile @@ -8,7 +8,7 @@ LLVM_SRCS= ${.CURDIR}/../../../contrib/llvm .PATH: ${LLVM_SRCS}/tools/clang/lib/Headers -INCSDIR=${LIBDIR}/clang/3.6.1/include +INCSDIR=${LIBDIR}/clang/3.7.0/include INCS= __stddef_max_align_t.h \ __wmmintrin_aes.h \ @@ -19,18 +19,25 @@ INCS= __stddef_max_align_t.h \ arm_acle.h \ avx2intrin.h \ avx512bwintrin.h \ + avx512cdintrin.h \ + avx512dqintrin.h \ avx512erintrin.h \ avx512fintrin.h \ avx512vlbwintrin.h \ + avx512vldqintrin.h \ avx512vlintrin.h \ avxintrin.h \ bmi2intrin.h \ bmiintrin.h \ cpuid.h \ + cuda_builtin_vars.h \ emmintrin.h \ f16cintrin.h \ fma4intrin.h \ fmaintrin.h \ + fxsrintrin.h \ + htmintrin.h \ + htmxlintrin.h \ ia32intrin.h \ immintrin.h \ lzcntintrin.h \ @@ -44,14 +51,18 @@ INCS= __stddef_max_align_t.h \ prfchwintrin.h \ rdseedintrin.h \ rtmintrin.h \ + s390intrin.h \ shaintrin.h \ smmintrin.h \ tbmintrin.h \ tmmintrin.h \ + vadefs.h \ + vecintrin.h \ wmmintrin.h \ x86intrin.h \ xmmintrin.h \ xopintrin.h \ + xtestintrin.h \ ${GENINCS} GENINCS= arm_neon.h CLEANFILES= ${GENINCS} ${GENINCS:C/\.h$/.d/} diff --git a/lib/clang/include/clang/Basic/Version.inc b/lib/clang/include/clang/Basic/Version.inc index e13af79..6056314 100644 --- a/lib/clang/include/clang/Basic/Version.inc +++ b/lib/clang/include/clang/Basic/Version.inc @@ -1,11 +1,11 @@ /* $FreeBSD$ */ -#define CLANG_VERSION 3.6.1 +#define CLANG_VERSION 3.7.0 #define CLANG_VERSION_MAJOR 3 -#define CLANG_VERSION_MINOR 6 -#define CLANG_VERSION_PATCHLEVEL 1 +#define CLANG_VERSION_MINOR 7 +#define CLANG_VERSION_PATCHLEVEL 0 #define CLANG_VENDOR "FreeBSD " -#define CLANG_VENDOR_SUFFIX " 20150525" +#define CLANG_VENDOR_SUFFIX " 20150906" -#define SVN_REVISION "237755" +#define SVN_REVISION "246257" diff --git a/lib/clang/include/clang/Config/config.h b/lib/clang/include/clang/Config/config.h index bb435f9..7ab95a0 100644 --- a/lib/clang/include/clang/Config/config.h +++ b/lib/clang/include/clang/Config/config.h @@ -10,6 +10,9 @@ /* Bug report URL. */ #define BUG_REPORT_URL "https://bugs.freebsd.org/submit/" +/* Default OpenMP runtime used by -fopenmp. */ +#define CLANG_DEFAULT_OPENMP_RUNTIME "libgomp" + /* Multilib suffix for libdir. */ #define CLANG_LIBDIR_SUFFIX "" @@ -28,7 +31,7 @@ /* Define if we have libxml2 */ /* #undef CLANG_HAVE_LIBXML */ -#define PACKAGE_STRING "LLVM 3.6.1" +#define PACKAGE_STRING "LLVM 3.7.0" /* The LLVM product name and version */ #define BACKEND_PACKAGE_STRING PACKAGE_STRING diff --git a/lib/clang/include/llvm/Config/config.h b/lib/clang/include/llvm/Config/config.h index 7a4e7ea..bae066c 100644 --- a/lib/clang/include/llvm/Config/config.h +++ b/lib/clang/include/llvm/Config/config.h @@ -8,14 +8,20 @@ /* Get __FreeBSD_version. */ #include <osreldate.h> +/* Exported configuration */ +#include "llvm/Config/llvm-config.h" + /* Bug report URL. */ #define BUG_REPORT_URL "https://bugs.freebsd.org/submit/" +/* Default OpenMP runtime used by -fopenmp. */ +#define CLANG_DEFAULT_OPENMP_RUNTIME "libgomp" + /* Define if we have libxml2 */ /* #undef CLANG_HAVE_LIBXML */ /* Multilib suffix for libdir. */ -/* #undef CLANG_LIBDIR_SUFFIX */ +#define CLANG_LIBDIR_SUFFIX "" /* Relative directory for resource files */ #define CLANG_RESOURCE_DIR "" @@ -44,9 +50,6 @@ /* Define to 1 if you have the `backtrace' function. */ /* #undef HAVE_BACKTRACE */ -/* Define to 1 if you have the `ceilf' function. */ -#define HAVE_CEILF 1 - /* Define to 1 if you have the <CrashReporterClient.h> header file. */ /* #undef HAVE_CRASHREPORTERCLIENT_H */ @@ -93,12 +96,6 @@ #define HAVE_EXECINFO_H 1 #endif -/* Define to 1 if you have the `exp' function. */ -#define HAVE_EXP 1 - -/* Define to 1 if you have the `exp2' function. */ -#define HAVE_EXP2 1 - /* Define to 1 if you have the <fcntl.h> header file. */ #define HAVE_FCNTL_H 1 @@ -114,15 +111,6 @@ /* Define to 1 if you have the <ffi.h> header file. */ /* #undef HAVE_FFI_H */ -/* Set to 1 if the finite function is found in <ieeefp.h> */ -/* #undef HAVE_FINITE_IN_IEEEFP_H */ - -/* Define to 1 if you have the `floorf' function. */ -#define HAVE_FLOORF 1 - -/* Define to 1 if you have the `fmodf' function. */ -#define HAVE_FMODF 1 - /* Define to 1 if you have the `futimens' function. */ #if __FreeBSD_version >= 1100056 #define HAVE_FUTIMENS 1 @@ -155,32 +143,20 @@ /* Define to 1 if you have the `isatty' function. */ #define HAVE_ISATTY 1 -/* Set to 1 if the isinf function is found in <cmath> */ -#define HAVE_ISINF_IN_CMATH 1 - -/* Set to 1 if the isinf function is found in <math.h> */ -#define HAVE_ISINF_IN_MATH_H 1 - -/* Set to 1 if the isnan function is found in <cmath> */ -#define HAVE_ISNAN_IN_CMATH 1 - -/* Set to 1 if the isnan function is found in <math.h> */ -#define HAVE_ISNAN_IN_MATH_H 1 - /* Define if libedit is available on this platform. */ #define HAVE_LIBEDIT 1 -/* Define to 1 if you have the `imagehlp' library (-limagehlp). */ -/* #undef HAVE_LIBIMAGEHLP */ - /* Define to 1 if you have the `m' library (-lm). */ #define HAVE_LIBM 1 +/* Define to 1 if you have the `ole32' library (-lole32). */ +/* #undef HAVE_LIBOLE32 */ + /* Define to 1 if you have the `psapi' library (-lpsapi). */ /* #undef HAVE_LIBPSAPI */ /* Define to 1 if you have the `pthread' library (-lpthread). */ -/* #undef HAVE_LIBPTHREAD */ +#define HAVE_LIBPTHREAD 1 /* Define to 1 if you have the `shell32' library (-lshell32). */ /* #undef HAVE_LIBSHELL32 */ @@ -198,17 +174,6 @@ the current directory to the dynamic linker search path. */ #define HAVE_LINK_R 1 -/* Define to 1 if you have the `log' function. */ -#define HAVE_LOG 1 - -/* Define to 1 if you have the `log10' function. */ -#define HAVE_LOG10 1 - -/* Define to 1 if you have the `log2' function. */ -#if __FreeBSD_version >= 900027 || (__FreeBSD_version < 900000 && __FreeBSD_version >= 802502) -#define HAVE_LOG2 1 -#endif - /* Define to 1 if you have the `longjmp' function. */ #define HAVE_LONGJMP 1 @@ -252,15 +217,9 @@ /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ /* #undef HAVE_NDIR_H */ -/* Define to 1 if you have the `nearbyintf' function. */ -#define HAVE_NEARBYINTF 1 - /* Define to 1 if you have the `posix_spawn' function. */ /* #undef HAVE_POSIX_SPAWN */ -/* Define to 1 if you have the `powf' function. */ -#define HAVE_POWF 1 - /* Define to 1 if you have the `pread' function. */ #define HAVE_PREAD 1 @@ -268,16 +227,16 @@ #define HAVE_PRINTF_A 1 /* Have pthread_getspecific */ -/* #undef HAVE_PTHREAD_GETSPECIFIC */ +#define HAVE_PTHREAD_GETSPECIFIC 1 /* Define to 1 if you have the <pthread.h> header file. */ -/* #undef HAVE_PTHREAD_H */ +#define HAVE_PTHREAD_H 1 /* Have pthread_mutex_lock */ -/* #undef HAVE_PTHREAD_MUTEX_LOCK */ +#define HAVE_PTHREAD_MUTEX_LOCK 1 /* Have pthread_rwlock_init */ -/* #undef HAVE_PTHREAD_RWLOCK_INIT */ +#define HAVE_PTHREAD_RWLOCK_INIT 1 /* Define to 1 if srand48/lrand48/drand48 exist in <stdlib.h> */ #define HAVE_RAND48 1 @@ -285,15 +244,6 @@ /* Define to 1 if you have the `realpath' function. */ #define HAVE_REALPATH 1 -/* Define to 1 if you have the `rintf' function. */ -#define HAVE_RINTF 1 - -/* Define to 1 if you have the `round' function. */ -#define HAVE_ROUND 1 - -/* Define to 1 if you have the `roundf' function. */ -#define HAVE_ROUNDF 1 - /* Define to 1 if you have the `sbrk' function. */ #define HAVE_SBRK 1 @@ -324,12 +274,6 @@ /* Define to 1 if you have the <stdlib.h> header file. */ #define HAVE_STDLIB_H 1 -/* Set to 1 if the std::isinf function is found in <cmath> */ -#define HAVE_STD_ISINF_IN_CMATH 1 - -/* Set to 1 if the std::isnan function is found in <cmath> */ -#define HAVE_STD_ISNAN_IN_CMATH 1 - /* Define to 1 if you have the `strerror' function. */ #define HAVE_STRERROR 1 @@ -342,9 +286,6 @@ /* Define to 1 if you have the <string.h> header file. */ #define HAVE_STRING_H 1 -/* Define to 1 if you have the `strtof' function. */ -#define HAVE_STRTOF 1 - /* Define to 1 if you have the `strtoll' function. */ #define HAVE_STRTOLL 1 @@ -470,6 +411,9 @@ /* Have host's ___chkstk */ /* #undef HAVE____CHKSTK */ +/* Have host's ___chkstk_ms */ +/* #undef HAVE____CHKSTK_MS */ + /* Linker version detected at compile time. */ /* #undef HOST_LINK_VERSION */ @@ -488,8 +432,11 @@ /* Installation directory for documentation */ /* #undef LLVM_DOCSDIR */ +/* Define to enable checks that alter the LLVM C++ ABI */ +#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1 + /* Define if threads enabled */ -#define LLVM_ENABLE_THREADS 0 +#define LLVM_ENABLE_THREADS 1 /* Define if zlib is enabled */ #define LLVM_ENABLE_ZLIB 1 @@ -498,7 +445,7 @@ /* #undef LLVM_ETCDIR */ /* Has gcc/MSVC atomic intrinsics */ -#define LLVM_HAS_ATOMICS 0 +#define LLVM_HAS_ATOMICS 1 /* Host triple LLVM will be executed on */ /* #undef LLVM_HOST_TRIPLE */ @@ -555,13 +502,13 @@ #define LLVM_VERSION_MAJOR 3 /* Minor version of the LLVM API */ -#define LLVM_VERSION_MINOR 6 +#define LLVM_VERSION_MINOR 7 /* Patch version of the LLVM API */ -#define LLVM_VERSION_PATCH 1 +#define LLVM_VERSION_PATCH 0 /* LLVM version string */ -#define LLVM_VERSION_STRING "3.6.1" +#define LLVM_VERSION_STRING "3.7.0" /* The shared library extension */ #define LTDL_SHLIB_EXT ".so" @@ -577,13 +524,13 @@ #define PACKAGE_NAME "LLVM" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "LLVM 3.6.1" +#define PACKAGE_STRING "LLVM 3.7.0" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "llvm" /* Define to the version of this package. */ -#define PACKAGE_VERSION "3.6.1" +#define PACKAGE_VERSION "3.7.0" /* Define as the return type of signal handlers (`int' or `void'). */ #define RETSIGTYPE void diff --git a/lib/clang/include/llvm/Config/llvm-config.h b/lib/clang/include/llvm/Config/llvm-config.h index a44de59..51a5918 100644 --- a/lib/clang/include/llvm/Config/llvm-config.h +++ b/lib/clang/include/llvm/Config/llvm-config.h @@ -31,14 +31,17 @@ /* Installation directory for documentation */ /* #undef LLVM_DOCSDIR */ +/* Define to enable checks that alter the LLVM C++ ABI */ +#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1 + /* Define if threads enabled */ -#define LLVM_ENABLE_THREADS 0 +#define LLVM_ENABLE_THREADS 1 /* Installation directory for config files */ /* #undef LLVM_ETCDIR */ /* Has gcc/MSVC atomic intrinsics */ -#define LLVM_HAS_ATOMICS 0 +#define LLVM_HAS_ATOMICS 1 /* Host triple LLVM will be executed on */ /* #undef LLVM_HOST_TRIPLE */ @@ -92,12 +95,12 @@ #define LLVM_VERSION_MAJOR 3 /* Minor version of the LLVM API */ -#define LLVM_VERSION_MINOR 6 +#define LLVM_VERSION_MINOR 7 /* Patch version of the LLVM API */ -#define LLVM_VERSION_PATCH 1 +#define LLVM_VERSION_PATCH 0 /* LLVM version string */ -#define LLVM_VERSION_STRING "3.6.1" +#define LLVM_VERSION_STRING "3.7.0" #endif diff --git a/lib/clang/libclanganalysis/Makefile b/lib/clang/libclanganalysis/Makefile index 6a34dca..66e7248 100644 --- a/lib/clang/libclanganalysis/Makefile +++ b/lib/clang/libclanganalysis/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -.include <bsd.own.mk> +.include <src.opts.mk> LIB= clanganalysis @@ -26,10 +26,13 @@ SRCS= AnalysisDeclContext.cpp \ ScanfFormatString.cpp \ ThreadSafety.cpp \ ThreadSafetyCommon.cpp \ - ThreadSafetyLogical.cpp \ ThreadSafetyTIL.cpp \ UninitializedValues.cpp +.if ${MK_CLANG_EXTRAS} != "no" +SRCS+= ThreadSafetyLogical.cpp +.endif + TGHDRS= AttrList \ AttrVisitor \ Attrs \ diff --git a/lib/clang/libclangbasic/Makefile b/lib/clang/libclangbasic/Makefile index 6a5791c..68c2a77 100644 --- a/lib/clang/libclangbasic/Makefile +++ b/lib/clang/libclangbasic/Makefile @@ -10,6 +10,7 @@ SRCS= Attributes.cpp \ CharInfo.cpp \ Diagnostic.cpp \ DiagnosticIDs.cpp \ + DiagnosticOptions.cpp \ FileManager.cpp \ FileSystemStatCache.cpp \ IdentifierTable.cpp \ diff --git a/lib/clang/libclangcodegen/Makefile b/lib/clang/libclangcodegen/Makefile index 521a430..623daba 100644 --- a/lib/clang/libclangcodegen/Makefile +++ b/lib/clang/libclangcodegen/Makefile @@ -49,6 +49,7 @@ SRCS= BackendUtil.cpp \ ItaniumCXXABI.cpp \ MicrosoftCXXABI.cpp \ ModuleBuilder.cpp \ + ObjectFilePCHContainerOperations.cpp \ SanitizerMetadata.cpp \ TargetInfo.cpp diff --git a/lib/clang/libclangdriver/Makefile b/lib/clang/libclangdriver/Makefile index aa51384..bc62b40 100644 --- a/lib/clang/libclangdriver/Makefile +++ b/lib/clang/libclangdriver/Makefile @@ -12,6 +12,7 @@ SRCS= Action.cpp \ DriverOptions.cpp \ Job.cpp \ MSVCToolChain.cpp \ + MinGWToolChain.cpp \ Multilib.cpp \ Phases.cpp \ SanitizerArgs.cpp \ diff --git a/lib/clang/libclangfrontend/Makefile b/lib/clang/libclangfrontend/Makefile index 95b8fc8..8e63fb0 100644 --- a/lib/clang/libclangfrontend/Makefile +++ b/lib/clang/libclangfrontend/Makefile @@ -29,6 +29,7 @@ SRCS= ASTConsumers.cpp \ LogDiagnosticPrinter.cpp \ ModuleDependencyCollector.cpp \ MultiplexConsumer.cpp \ + PCHContainerOperations.cpp \ PrintPreprocessedOutput.cpp \ SerializedDiagnosticPrinter.cpp \ SerializedDiagnosticReader.cpp \ diff --git a/lib/clang/libclangstaticanalyzercheckers/Makefile b/lib/clang/libclangstaticanalyzercheckers/Makefile index 5fb1035..ec4a76f 100644 --- a/lib/clang/libclangstaticanalyzercheckers/Makefile +++ b/lib/clang/libclangstaticanalyzercheckers/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -.include <bsd.own.mk> +.include <src.opts.mk> LIB= clangstaticanalyzercheckers @@ -21,7 +21,6 @@ SRCS= AllocationDiagnostics.cpp \ CheckObjCInstMethSignature.cpp \ CheckSecuritySyntaxOnly.cpp \ CheckSizeofPointer.cpp \ - CheckerDocumentation.cpp \ ChrootChecker.cpp \ ClangCheckers.cpp \ DeadStoresChecker.cpp \ @@ -73,6 +72,10 @@ SRCS= AllocationDiagnostics.cpp \ VLASizeChecker.cpp \ VirtualCallChecker.cpp +.if ${MK_CLANG_EXTRAS} != "no" +SRCS+= CheckerDocumentation.cpp +.endif + TGHDRS= AttrList \ AttrVisitor \ Attrs \ diff --git a/lib/clang/libclangstaticanalyzercore/Makefile b/lib/clang/libclangstaticanalyzercore/Makefile index 74f49bf..e171517 100644 --- a/lib/clang/libclangstaticanalyzercore/Makefile +++ b/lib/clang/libclangstaticanalyzercore/Makefile @@ -50,6 +50,7 @@ TGHDRS= AttrList \ CommentNodes \ DeclNodes \ DiagnosticCommonKinds \ + DiagnosticFrontendKinds \ StmtNodes .include "../clang.lib.mk" diff --git a/lib/clang/liblldb/Makefile b/lib/clang/liblldb/Makefile index 1306cdf..dc1726a 100644 --- a/lib/clang/liblldb/Makefile +++ b/lib/clang/liblldb/Makefile @@ -7,8 +7,8 @@ LIB= lldb CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/POSIX SRCDIR= tools/lldb/source -SRCS= lldb.cpp \ - lldb-log.cpp +SRCS= lldb.cpp + TGHDRS= AttrList \ Attrs \ diff --git a/lib/clang/liblldbAPI/Makefile b/lib/clang/liblldbAPI/Makefile index 44addca..0ecf54a 100644 --- a/lib/clang/liblldbAPI/Makefile +++ b/lib/clang/liblldbAPI/Makefile @@ -6,6 +6,7 @@ LIB= lldbAPI SRCDIR= tools/lldb/source/API SRCS= SBAddress.cpp \ + SBAttachInfo.cpp \ SBBlock.cpp \ SBBreakpoint.cpp \ SBBreakpointLocation.cpp \ @@ -28,6 +29,8 @@ SRCS= SBAddress.cpp \ SBHostOS.cpp \ SBInstruction.cpp \ SBInstructionList.cpp \ + SBLanguageRuntime.cpp \ + SBLaunchInfo.cpp \ SBLineEntry.cpp \ SBListener.cpp \ SBModule.cpp \ @@ -57,8 +60,10 @@ SRCS= SBAddress.cpp \ SBTypeSynthetic.cpp \ SBUnixSignals.cpp \ SBValue.cpp \ + SBVariablesOptions.cpp \ SBValueList.cpp \ - SBWatchpoint.cpp + SBWatchpoint.cpp \ + SystemInitializerFull.cpp TGHDRS= AttrList \ Attrs \ diff --git a/lib/clang/liblldbCommands/Makefile b/lib/clang/liblldbCommands/Makefile index 833c8a8..d554be9 100644 --- a/lib/clang/liblldbCommands/Makefile +++ b/lib/clang/liblldbCommands/Makefile @@ -10,12 +10,14 @@ SRCS= CommandCompletions.cpp \ CommandObjectArgs.cpp \ CommandObjectBreakpoint.cpp \ CommandObjectBreakpointCommand.cpp \ + CommandObjectBugreport.cpp \ CommandObjectCommands.cpp \ CommandObjectDisassemble.cpp \ CommandObjectExpression.cpp \ CommandObjectFrame.cpp \ CommandObjectGUI.cpp \ CommandObjectHelp.cpp \ + CommandObjectLanguage.cpp \ CommandObjectLog.cpp \ CommandObjectMemory.cpp \ CommandObjectMultiword.cpp \ diff --git a/lib/clang/liblldbCore/Makefile b/lib/clang/liblldbCore/Makefile index 7d9e86b..86bff4d 100644 --- a/lib/clang/liblldbCore/Makefile +++ b/lib/clang/liblldbCore/Makefile @@ -18,6 +18,7 @@ SRCS= Address.cpp \ ConnectionMachPort.cpp \ ConnectionSharedMemory.cpp \ ConstString.cpp \ + CxaDemangle.cpp \ DataBufferHeap.cpp \ DataBufferMemoryMap.cpp \ DataEncoder.cpp \ @@ -31,11 +32,13 @@ SRCS= Address.cpp \ FastDemangle.cpp \ FileLineResolver.cpp \ FileSpecList.cpp \ + FormatEntity.cpp \ History.cpp \ IOHandler.cpp \ Language.cpp \ Listener.cpp \ Log.cpp \ + Logging.cpp \ Mangled.cpp \ Module.cpp \ ModuleChild.cpp \ diff --git a/lib/clang/liblldbDataFormatters/Makefile b/lib/clang/liblldbDataFormatters/Makefile index df34f00..8814697 100644 --- a/lib/clang/liblldbDataFormatters/Makefile +++ b/lib/clang/liblldbDataFormatters/Makefile @@ -30,7 +30,8 @@ SRCS= CF.cpp \ TypeSummary.cpp \ TypeSynthetic.cpp \ TypeValidator.cpp \ - ValueObjectPrinter.cpp + ValueObjectPrinter.cpp \ + VectorType.cpp TGHDRS= AttrList \ Attrs \ diff --git a/lib/clang/liblldbHostCommon/Makefile b/lib/clang/liblldbHostCommon/Makefile index af3c053..f463c9c 100644 --- a/lib/clang/liblldbHostCommon/Makefile +++ b/lib/clang/liblldbHostCommon/Makefile @@ -9,25 +9,30 @@ SRCS= Condition.cpp \ Editline.cpp \ File.cpp \ FileSpec.cpp \ + FileSystem.cpp \ Host.cpp \ HostInfoBase.cpp \ HostNativeThreadBase.cpp \ HostProcess.cpp \ HostThread.cpp \ IOObject.cpp \ + LockFileBase.cpp \ MonitoringProcessLauncher.cpp \ Mutex.cpp \ + NativeRegisterContext.cpp \ OptionParser.cpp \ PipeBase.cpp \ ProcessRunLock.cpp \ Socket.cpp \ SocketAddress.cpp \ SoftwareBreakpoint.cpp \ + StringConvert.cpp \ Symbols.cpp \ Terminal.cpp \ ThisThread.cpp \ ThreadLauncher.cpp \ - TimeValue.cpp + TimeValue.cpp \ + XML.cpp TGHDRS= AttrList \ Attrs \ diff --git a/lib/clang/liblldbHostPOSIX/Makefile b/lib/clang/liblldbHostPOSIX/Makefile index 6fe660a..a46dbca 100644 --- a/lib/clang/liblldbHostPOSIX/Makefile +++ b/lib/clang/liblldbHostPOSIX/Makefile @@ -10,6 +10,7 @@ SRCS= ConnectionFileDescriptorPosix.cpp \ HostInfoPosix.cpp \ HostProcessPosix.cpp \ HostThreadPosix.cpp \ + LockFilePosix.cpp \ PipePosix.cpp \ ProcessLauncherPosix.cpp diff --git a/lib/clang/liblldbInitialization/Makefile b/lib/clang/liblldbInitialization/Makefile new file mode 100644 index 0000000..9507b6e --- /dev/null +++ b/lib/clang/liblldbInitialization/Makefile @@ -0,0 +1,19 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbInitialization + +SRCDIR= tools/lldb/source/Initialization +SRCS= SystemInitializer.cpp \ + SystemInitializerCommon.cpp \ + SystemLifetimeManager.cpp + +#TGHDRS= AttrList \ +# Attrs \ +# DiagnosticCommonKinds \ +# DeclNodes \ +# StmtNodes \ +# CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbInterpreter/Makefile b/lib/clang/liblldbInterpreter/Makefile index f707d9b..2ef5d6e 100644 --- a/lib/clang/liblldbInterpreter/Makefile +++ b/lib/clang/liblldbInterpreter/Makefile @@ -34,6 +34,8 @@ SRCS= Args.cpp \ OptionValueFileSpec.cpp \ OptionValueFileSpecLIst.cpp \ OptionValueFormat.cpp \ + OptionValueFormatEntity.cpp \ + OptionValueLanguage.cpp \ OptionValuePathMappings.cpp \ OptionValueProperties.cpp \ OptionValueRegex.cpp \ diff --git a/lib/clang/liblldbPluginABISysV_arm/Makefile b/lib/clang/liblldbPluginABISysV_arm/Makefile new file mode 100644 index 0000000..9e59f5b --- /dev/null +++ b/lib/clang/liblldbPluginABISysV_arm/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginABISysV_arm + +SRCDIR= tools/lldb/source/Plugins/ABI/SysV-arm +SRCS= ABISysV_arm.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginABISysV_arm64/Makefile b/lib/clang/liblldbPluginABISysV_arm64/Makefile new file mode 100644 index 0000000..c5dbee6 --- /dev/null +++ b/lib/clang/liblldbPluginABISysV_arm64/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginABISysV_arm64 + +SRCDIR= tools/lldb/source/Plugins/ABI/SysV-arm64 +SRCS= ABISysV_arm64.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginABISysV_i386/Makefile b/lib/clang/liblldbPluginABISysV_i386/Makefile new file mode 100644 index 0000000..ecc26a1 --- /dev/null +++ b/lib/clang/liblldbPluginABISysV_i386/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginABISysV_i386 + +SRCDIR= tools/lldb/source/Plugins/ABI/SysV-i386 +SRCS= ABISysV_i386.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginABISysV_mips/Makefile b/lib/clang/liblldbPluginABISysV_mips/Makefile new file mode 100644 index 0000000..f80d87d --- /dev/null +++ b/lib/clang/liblldbPluginABISysV_mips/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginABISysV_mips + +SRCDIR= tools/lldb/source/Plugins/ABI/SysV-mips +SRCS= ABISysV_mips.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginABISysV_mips64/Makefile b/lib/clang/liblldbPluginABISysV_mips64/Makefile new file mode 100644 index 0000000..293435f --- /dev/null +++ b/lib/clang/liblldbPluginABISysV_mips64/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginABISysV_mips64 + +SRCDIR= tools/lldb/source/Plugins/ABI/SysV-mips64 +SRCS= ABISysV_mips64.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginInstructionMIPS/Makefile b/lib/clang/liblldbPluginInstructionMIPS/Makefile new file mode 100644 index 0000000..5fdbcd1 --- /dev/null +++ b/lib/clang/liblldbPluginInstructionMIPS/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginInstructionMIPS + +SRCDIR= tools/lldb/source/Plugins/Instruction/MIPS +SRCS= EmulateInstructionMIPS.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginInstructionMIPS64/Makefile b/lib/clang/liblldbPluginInstructionMIPS64/Makefile new file mode 100644 index 0000000..3779562 --- /dev/null +++ b/lib/clang/liblldbPluginInstructionMIPS64/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= lldbPluginInstructionMIPS64 + +SRCDIR= tools/lldb/source/Plugins/Instruction/MIPS64 +SRCS= EmulateInstructionMIPS64.cpp + +TGHDRS= DiagnosticCommonKinds \ + DeclNodes \ + StmtNodes \ + CommentCommandList + +.include "../lldb.lib.mk" diff --git a/lib/clang/liblldbPluginProcessElfCore/Makefile b/lib/clang/liblldbPluginProcessElfCore/Makefile index 66852dd..e8fc698 100644 --- a/lib/clang/liblldbPluginProcessElfCore/Makefile +++ b/lib/clang/liblldbPluginProcessElfCore/Makefile @@ -10,6 +10,8 @@ CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/Uti SRCDIR= tools/lldb/source/Plugins/Process/elf-core SRCS= ProcessElfCore.cpp \ ThreadElfCore.cpp \ + RegisterContextPOSIXCore_arm.cpp \ + RegisterContextPOSIXCore_arm64.cpp \ RegisterContextPOSIXCore_mips64.cpp \ RegisterContextPOSIXCore_powerpc.cpp \ RegisterContextPOSIXCore_x86_64.cpp diff --git a/lib/clang/liblldbPluginProcessFreeBSD/Makefile b/lib/clang/liblldbPluginProcessFreeBSD/Makefile index 2002b7d..2af488b 100644 --- a/lib/clang/liblldbPluginProcessFreeBSD/Makefile +++ b/lib/clang/liblldbPluginProcessFreeBSD/Makefile @@ -11,7 +11,15 @@ CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/POS SRCDIR= tools/lldb/source/Plugins/Process/FreeBSD SRCS= FreeBSDThread.cpp \ ProcessFreeBSD.cpp \ - ProcessMonitor.cpp + ProcessMonitor.cpp \ + POSIXStopInfo.cpp \ + POSIXThread.cpp \ + ProcessPOSIX.cpp \ + RegisterContextPOSIXProcessMonitor_arm.cpp \ + RegisterContextPOSIXProcessMonitor_arm64.cpp \ + RegisterContextPOSIXProcessMonitor_mips64.cpp \ + RegisterContextPOSIXProcessMonitor_powerpc.cpp \ + RegisterContextPOSIXProcessMonitor_x86.cpp TGHDRS= DiagnosticCommonKinds \ DeclNodes \ diff --git a/lib/clang/liblldbPluginProcessGDBRemote/Makefile b/lib/clang/liblldbPluginProcessGDBRemote/Makefile index 5bbb40f..ec59e3c 100644 --- a/lib/clang/liblldbPluginProcessGDBRemote/Makefile +++ b/lib/clang/liblldbPluginProcessGDBRemote/Makefile @@ -8,6 +8,9 @@ SRCDIR= tools/lldb/source/Plugins/Process/gdb-remote SRCS= GDBRemoteCommunication.cpp \ GDBRemoteCommunicationClient.cpp \ GDBRemoteCommunicationServer.cpp \ + GDBRemoteCommunicationServerCommon.cpp \ + GDBRemoteCommunicationServerLLGS.cpp \ + GDBRemoteCommunicationServerPlatform.cpp \ GDBRemoteRegisterContext.cpp \ ProcessGDBRemote.cpp \ ProcessGDBRemoteLog.cpp \ diff --git a/lib/clang/liblldbPluginProcessPOSIX/Makefile b/lib/clang/liblldbPluginProcessPOSIX/Makefile index ddd902a..8c73930 100644 --- a/lib/clang/liblldbPluginProcessPOSIX/Makefile +++ b/lib/clang/liblldbPluginProcessPOSIX/Makefile @@ -10,15 +10,9 @@ CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/Uti CFLAGS+=-I${.CURDIR}/../../../contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD SRCDIR= tools/lldb/source/Plugins/Process/POSIX -SRCS= POSIXStopInfo.cpp \ - POSIXThread.cpp \ +SRCS= CrashReason.cpp \ ProcessMessage.cpp \ - ProcessPOSIX.cpp \ - ProcessPOSIXLog.cpp \ - RegisterContextPOSIXProcessMonitor_arm64.cpp \ - RegisterContextPOSIXProcessMonitor_mips64.cpp \ - RegisterContextPOSIXProcessMonitor_powerpc.cpp \ - RegisterContextPOSIXProcessMonitor_x86.cpp + ProcessPOSIXLog.cpp TGHDRS= AttrList \ Attrs \ diff --git a/lib/clang/liblldbPluginProcessUtility/Makefile b/lib/clang/liblldbPluginProcessUtility/Makefile index d43396f..ee11668 100644 --- a/lib/clang/liblldbPluginProcessUtility/Makefile +++ b/lib/clang/liblldbPluginProcessUtility/Makefile @@ -7,22 +7,28 @@ LIB= lldbPluginProcessUtility SRCDIR= tools/lldb/source/Plugins/Process/Utility SRCS= DynamicRegisterInfo.cpp \ FreeBSDSignals.cpp \ + GDBRemoteSignals.cpp \ HistoryThread.cpp \ HistoryUnwind.cpp \ InferiorCallPOSIX.cpp \ LinuxSignals.cpp \ + MipsLinuxSignals.cpp \ RegisterContextDarwin_arm.cpp \ RegisterContextDarwin_arm64.cpp \ RegisterContextDarwin_i386.cpp \ RegisterContextDarwin_x86_64.cpp \ RegisterContextDummy.cpp \ + RegisterContextFreeBSD_arm.cpp \ + RegisterContextFreeBSD_arm64.cpp \ RegisterContextFreeBSD_i386.cpp \ RegisterContextFreeBSD_mips64.cpp \ RegisterContextFreeBSD_powerpc.cpp \ RegisterContextFreeBSD_x86_64.cpp \ RegisterContextHistory.cpp \ + RegisterContextLinux_arm.cpp \ RegisterContextLinux_arm64.cpp \ RegisterContextLinux_i386.cpp \ + RegisterContextLinux_mips.cpp \ RegisterContextLinux_x86_64.cpp \ RegisterContextLLDB.cpp \ RegisterContextMach_arm.cpp \ @@ -30,6 +36,7 @@ SRCS= DynamicRegisterInfo.cpp \ RegisterContextMach_x86_64.cpp \ RegisterContextMacOSXFrameBackchain.cpp \ RegisterContextMemory.cpp \ + RegisterContextPOSIX_arm.cpp \ RegisterContextPOSIX_arm64.cpp \ RegisterContextPOSIX_mips64.cpp \ RegisterContextPOSIX_powerpc.cpp \ diff --git a/lib/clang/liblldbTarget/Makefile b/lib/clang/liblldbTarget/Makefile index 95ced8d..110dfe9 100644 --- a/lib/clang/liblldbTarget/Makefile +++ b/lib/clang/liblldbTarget/Makefile @@ -18,8 +18,6 @@ SRCS= ABI.cpp \ LanguageRuntime.cpp \ Memory.cpp \ MemoryHistory.cpp \ - NativeRegisterContext.cpp \ - NativeRegisterContextRegisterInfo.cpp \ ObjCLanguageRuntime.cpp \ OperatingSystem.cpp \ PathMappingList.cpp \ @@ -46,6 +44,7 @@ SRCS= ABI.cpp \ ThreadPlan.cpp \ ThreadPlanBase.cpp \ ThreadPlanCallFunction.cpp \ + ThreadPlanCallFunctionUsingABI.cpp \ ThreadPlanCallUserExpression.cpp \ ThreadPlanPython.cpp \ ThreadPlanRunToAddress.cpp \ diff --git a/lib/clang/liblldbUtility/Makefile b/lib/clang/liblldbUtility/Makefile index 13ed72d..918cfab 100644 --- a/lib/clang/liblldbUtility/Makefile +++ b/lib/clang/liblldbUtility/Makefile @@ -7,7 +7,12 @@ LIB= lldbUtility SRCDIR= tools/lldb/source/Utility SRCS= ARM64_DWARF_Registers.cpp \ ARM_DWARF_Registers.cpp \ + ConvertEnum.cpp \ + JSON.cpp \ KQueue.cpp \ + LLDBAssert.cpp \ + ModuleCache.cpp \ + NameMatches.cpp \ PseudoTerminal.cpp \ Range.cpp \ RegisterNumber.cpp \ diff --git a/lib/clang/libllvmanalysis/Makefile b/lib/clang/libllvmanalysis/Makefile index 7c81c5b..23d1f87 100644 --- a/lib/clang/libllvmanalysis/Makefile +++ b/lib/clang/libllvmanalysis/Makefile @@ -10,7 +10,6 @@ SRCS= AliasAnalysis.cpp \ AliasAnalysisEvaluator.cpp \ AliasDebugger.cpp \ AliasSetTracker.cpp \ - Analysis.cpp \ AssumptionCache.cpp \ BasicAliasAnalysis.cpp \ BlockFrequencyInfo.cpp \ @@ -19,33 +18,35 @@ SRCS= AliasAnalysis.cpp \ CFG.cpp \ CFGPrinter.cpp \ CFLAliasAnalysis.cpp \ - CGSCCPassManager.cpp \ CaptureTracking.cpp \ CodeMetrics.cpp \ ConstantFolding.cpp \ CostModel.cpp \ Delinearization.cpp \ DependenceAnalysis.cpp \ + DivergenceAnalysis.cpp \ DomPrinter.cpp \ DominanceFrontier.cpp \ - FunctionTargetTransformInfo.cpp \ IVUsers.cpp \ InstCount.cpp \ InstructionSimplify.cpp \ Interval.cpp \ IntervalPartition.cpp \ - JumpInstrTableInfo.cpp \ + IteratedDominanceFrontier.cpp \ LazyCallGraph.cpp \ LazyValueInfo.cpp \ LibCallAliasAnalysis.cpp \ LibCallSemantics.cpp \ Lint.cpp \ Loads.cpp \ + LoopAccessAnalysis.cpp \ LoopInfo.cpp \ LoopPass.cpp \ MemDepPrinter.cpp \ + MemDerefPrinter.cpp \ MemoryBuiltins.cpp \ MemoryDependenceAnalysis.cpp \ + MemoryLocation.cpp \ ModuleDebugInfoPrinter.cpp \ NoAliasAnalysis.cpp \ PHITransAddr.cpp \ @@ -60,11 +61,18 @@ SRCS= AliasAnalysis.cpp \ ScalarEvolutionNormalization.cpp \ ScopedNoAliasAA.cpp \ SparsePropagation.cpp \ + TargetLibraryInfo.cpp \ TargetTransformInfo.cpp \ - Trace.cpp \ TypeBasedAliasAnalysis.cpp \ - ValueTracking.cpp + ValueTracking.cpp \ + VectorUtils.cpp +.if ${MK_CLANG_EXTRAS} != "no" +SRCS+= Analysis.cpp \ + CGSCCPassManager.cpp \ + Trace.cpp +.endif + TGHDRS= Intrinsics .include "../clang.lib.mk" diff --git a/lib/clang/libllvmarmcodegen/Makefile b/lib/clang/libllvmarmcodegen/Makefile index dc951e3..6da61b9 100644 --- a/lib/clang/libllvmarmcodegen/Makefile +++ b/lib/clang/libllvmarmcodegen/Makefile @@ -21,8 +21,8 @@ SRCS= A15SDOptimizer.cpp \ ARMLoadStoreOptimizer.cpp \ ARMMCInstLower.cpp \ ARMMachineFunctionInfo.cpp \ - ARMRegisterInfo.cpp \ ARMOptimizeBarriersPass.cpp \ + ARMRegisterInfo.cpp \ ARMSelectionDAGInfo.cpp \ ARMSubtarget.cpp \ ARMTargetMachine.cpp \ @@ -31,11 +31,10 @@ SRCS= A15SDOptimizer.cpp \ MLxExpansionPass.cpp \ Thumb1FrameLowering.cpp \ Thumb1InstrInfo.cpp \ - Thumb1RegisterInfo.cpp \ Thumb2ITBlockPass.cpp \ Thumb2InstrInfo.cpp \ - Thumb2RegisterInfo.cpp \ - Thumb2SizeReduction.cpp + Thumb2SizeReduction.cpp \ + ThumbRegisterInfo.cpp TGHDRS= ARMGenAsmWriter \ ARMGenCallingConv \ diff --git a/lib/clang/libllvmasmprinter/Makefile b/lib/clang/libllvmasmprinter/Makefile index 4ff6f22..1cddd55 100644 --- a/lib/clang/libllvmasmprinter/Makefile +++ b/lib/clang/libllvmasmprinter/Makefile @@ -12,6 +12,7 @@ SRCS= ARMException.cpp \ AsmPrinterInlineAsm.cpp \ DIE.cpp \ DIEHash.cpp \ + DebugLocStream.cpp \ DbgValueHistoryCalculator.cpp \ DwarfAccelTable.cpp \ DwarfCFIException.cpp \ @@ -24,8 +25,8 @@ SRCS= ARMException.cpp \ EHStreamer.cpp \ ErlangGCPrinter.cpp \ OcamlGCPrinter.cpp \ - Win64Exception.cpp \ - WinCodeViewLineTables.cpp + WinCodeViewLineTables.cpp \ + WinException.cpp TGHDRS= Intrinsics diff --git a/lib/clang/libllvmbitwriter/Makefile b/lib/clang/libllvmbitwriter/Makefile index a99d1ac..2e5fa2a 100644 --- a/lib/clang/libllvmbitwriter/Makefile +++ b/lib/clang/libllvmbitwriter/Makefile @@ -1,13 +1,16 @@ # $FreeBSD$ -.include <bsd.own.mk> +.include <src.opts.mk> LIB= llvmbitwriter SRCDIR= lib/Bitcode/Writer -SRCS= BitWriter.cpp \ - BitcodeWriter.cpp \ +SRCS= BitcodeWriter.cpp \ BitcodeWriterPass.cpp \ ValueEnumerator.cpp +.if ${MK_CLANG_EXTRAS} != "no" +SRCS+= BitWriter.cpp +.endif + .include "../clang.lib.mk" diff --git a/lib/clang/libllvmcodegen/Makefile b/lib/clang/libllvmcodegen/Makefile index d5d8e43..3205f6a 100644 --- a/lib/clang/libllvmcodegen/Makefile +++ b/lib/clang/libllvmcodegen/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -.include <bsd.own.mk> +.include <src.opts.mk> LIB= llvmcodegen @@ -15,6 +15,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \ CallingConvLower.cpp \ CodeGen.cpp \ CodeGenPrepare.cpp \ + CoreCLRGC.cpp \ CriticalAntiDepBreaker.cpp \ DFAPacketizer.cpp \ DeadMachineInstructionElim.cpp \ @@ -25,16 +26,16 @@ SRCS= AggressiveAntiDepBreaker.cpp \ ExecutionDepsFix.cpp \ ExpandISelPseudos.cpp \ ExpandPostRAPseudos.cpp \ - ForwardControlFlowIntegrity.cpp \ + FaultMaps.cpp \ GCMetadata.cpp \ - GCMetadataPrinter.cpp \ - GCStrategy.cpp \ + GCRootLowering.cpp \ GlobalMerge.cpp \ IfConversion.cpp \ + ImplicitNullChecks.cpp \ InlineSpiller.cpp \ InterferenceCache.cpp \ + InterleavedAccessPass.cpp \ IntrinsicLowering.cpp \ - JumpInstrTables.cpp \ LLVMTargetMachine.cpp \ LatencyPriorityQueue.cpp \ LexicalScopes.cpp \ @@ -49,6 +50,8 @@ SRCS= AggressiveAntiDepBreaker.cpp \ LiveStackAnalysis.cpp \ LiveVariables.cpp \ LocalStackSlotAllocation.cpp \ + MIRPrinter.cpp \ + MIRPrintingPass.cpp \ MachineBasicBlock.cpp \ MachineBlockFrequencyInfo.cpp \ MachineBlockPlacement.cpp \ @@ -101,6 +104,8 @@ SRCS= AggressiveAntiDepBreaker.cpp \ ScheduleDAGPrinter.cpp \ ScoreboardHazardRecognizer.cpp \ ShadowStackGC.cpp \ + ShadowStackGCLowering.cpp \ + ShrinkWrap.cpp \ SjLjEHPrepare.cpp \ SlotIndexes.cpp \ SpillPlacement.cpp \ @@ -121,7 +126,13 @@ SRCS= AggressiveAntiDepBreaker.cpp \ TargetSchedule.cpp \ TwoAddressInstructionPass.cpp \ UnreachableBlockElim.cpp \ - VirtRegMap.cpp + VirtRegMap.cpp \ + WinEHPrepare.cpp + +.if ${MK_CLANG_EXTRAS} != "no" +SRCS+= GCMetadataPrinter.cpp \ + GCStrategy.cpp +.endif TGHDRS= Intrinsics diff --git a/lib/clang/libllvmcore/Makefile b/lib/clang/libllvmcore/Makefile index 921d0be..1d57ecc 100644 --- a/lib/clang/libllvmcore/Makefile +++ b/lib/clang/libllvmcore/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -.include <bsd.own.mk> +.include <src.opts.mk> LIB= llvmcore @@ -17,6 +17,7 @@ SRCS= AsmWriter.cpp \ DIBuilder.cpp \ DataLayout.cpp \ DebugInfo.cpp \ + DebugInfoMetadata.cpp \ DebugLoc.cpp \ DiagnosticInfo.cpp \ DiagnosticPrinter.cpp \ @@ -39,20 +40,23 @@ SRCS= AsmWriter.cpp \ Metadata.cpp \ MetadataTracking.cpp \ Module.cpp \ + Operator.cpp \ Pass.cpp \ - PassManager.cpp \ PassRegistry.cpp \ Statepoint.cpp \ Type.cpp \ TypeFinder.cpp \ Use.cpp \ - UseListOrder.cpp \ User.cpp \ Value.cpp \ ValueSymbolTable.cpp \ ValueTypes.cpp \ Verifier.cpp +.if ${MK_CLANG_EXTRAS} != "no" +SRCS+= PassManager.cpp +.endif + TGHDRS= Intrinsics .include "../clang.lib.mk" diff --git a/lib/clang/libllvmdebuginfo/Makefile.depend b/lib/clang/libllvmdebuginfo/Makefile.depend deleted file mode 100644 index 3e7f3f5..0000000 --- a/lib/clang/libllvmdebuginfo/Makefile.depend +++ /dev/null @@ -1,15 +0,0 @@ -# $FreeBSD$ -# Autogenerated - do NOT edit! - -DIRDEPS = \ - include \ - include/xlocale \ - lib/libc++ \ - lib/msun \ - - -.include <dirdeps.mk> - -.if ${DEP_RELDIR} == ${_DEP_RELDIR} -# local dependencies - needed for -jN in clean tree -.endif diff --git a/lib/clang/libllvmdebuginfo/Makefile b/lib/clang/libllvmdebuginfodwarf/Makefile index 3cee40e..5f52f33 100644 --- a/lib/clang/libllvmdebuginfo/Makefile +++ b/lib/clang/libllvmdebuginfodwarf/Makefile @@ -2,11 +2,11 @@ .include <src.opts.mk> -LIB= llvmdebuginfo +LIB= llvmdebuginfodwarf -SRCDIR= lib/DebugInfo -SRCS= DIContext.cpp \ - DWARFAbbreviationDeclaration.cpp \ +SRCDIR= lib/DebugInfo/DWARF +SRCS= DWARFAbbreviationDeclaration.cpp \ + DWARFAcceleratorTable.cpp \ DWARFCompileUnit.cpp \ DWARFContext.cpp \ DWARFDebugAbbrev.cpp \ @@ -19,11 +19,7 @@ SRCS= DIContext.cpp \ DWARFDebugRangeList.cpp \ DWARFFormValue.cpp \ DWARFTypeUnit.cpp \ - DWARFUnit.cpp - -.if ${MK_CLANG_EXTRAS} != "no" -SRCS+= DWARFAcceleratorTable.cpp \ + DWARFUnit.cpp \ SyntaxHighlighting.cpp -.endif .include "../clang.lib.mk" diff --git a/lib/clang/libllvmdebuginfopdb/Makefile b/lib/clang/libllvmdebuginfopdb/Makefile new file mode 100644 index 0000000..1b694db --- /dev/null +++ b/lib/clang/libllvmdebuginfopdb/Makefile @@ -0,0 +1,47 @@ +# $FreeBSD$ + +.include <src.opts.mk> + +LIB= llvmdebuginfopdb + +SRCDIR= lib/DebugInfo/PDB +SRCS= IPDBSourceFile.cpp \ + PDB.cpp \ + PDBContext.cpp \ + PDBExtras.cpp \ + PDBInterfaceAnchors.cpp \ + PDBSymDumper.cpp \ + PDBSymbol.cpp \ + PDBSymbolAnnotation.cpp \ + PDBSymbolBlock.cpp \ + PDBSymbolCompiland.cpp \ + PDBSymbolCompilandDetails.cpp \ + PDBSymbolCompilandEnv.cpp \ + PDBSymbolCustom.cpp \ + PDBSymbolData.cpp \ + PDBSymbolExe.cpp \ + PDBSymbolFunc.cpp \ + PDBSymbolFuncDebugEnd.cpp \ + PDBSymbolFuncDebugStart.cpp \ + PDBSymbolLabel.cpp \ + PDBSymbolPublicSymbol.cpp \ + PDBSymbolThunk.cpp \ + PDBSymbolTypeArray.cpp \ + PDBSymbolTypeBaseClass.cpp \ + PDBSymbolTypeBuiltin.cpp \ + PDBSymbolTypeCustom.cpp \ + PDBSymbolTypeDimension.cpp \ + PDBSymbolTypeEnum.cpp \ + PDBSymbolTypeFriend.cpp \ + PDBSymbolTypeFunctionArg.cpp \ + PDBSymbolTypeFunctionSig.cpp \ + PDBSymbolTypeManaged.cpp \ + PDBSymbolTypePointer.cpp \ + PDBSymbolTypeTypedef.cpp \ + PDBSymbolTypeUDT.cpp \ + PDBSymbolTypeVTable.cpp \ + PDBSymbolTypeVTableShape.cpp \ + PDBSymbolUnknown.cpp \ + PDBSymbolUsingNamespace.cpp + +.include "../clang.lib.mk" diff --git a/lib/clang/libllvmexecutionengine/Makefile b/lib/clang/libllvmexecutionengine/Makefile index 5a7e6c3..13855a0 100644 --- a/lib/clang/libllvmexecutionengine/Makefile +++ b/lib/clang/libllvmexecutionengine/Makefile @@ -8,6 +8,7 @@ SRCDIR= lib/ExecutionEngine SRCS= ExecutionEngine.cpp \ ExecutionEngineBindings.cpp \ GDBRegistrationListener.cpp \ + SectionMemoryManager.cpp \ TargetSelect.cpp .include "../clang.lib.mk" diff --git a/lib/clang/libllvminstrumentation/Makefile b/lib/clang/libllvminstrumentation/Makefile index 963b638..82730b0 100644 --- a/lib/clang/libllvminstrumentation/Makefile +++ b/lib/clang/libllvminstrumentation/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -.include <bsd.own.mk> +.include <src.opts.mk> LIB= llvminstrumentation @@ -10,11 +10,15 @@ SRCS= AddressSanitizer.cpp \ DataFlowSanitizer.cpp \ GCOVProfiling.cpp \ MemorySanitizer.cpp \ - Instrumentation.cpp \ InstrProfiling.cpp \ + SafeStack.cpp \ SanitizerCoverage.cpp \ ThreadSanitizer.cpp +.if ${MK_CLANG_EXTRAS} != "no" +SRCS+= Instrumentation.cpp +.endif + TGHDRS= Intrinsics .include "../clang.lib.mk" diff --git a/lib/clang/libllvmipo/Makefile b/lib/clang/libllvmipo/Makefile index 85af036..16e1c3a 100644 --- a/lib/clang/libllvmipo/Makefile +++ b/lib/clang/libllvmipo/Makefile @@ -9,6 +9,7 @@ SRCS= ArgumentPromotion.cpp \ BarrierNoopPass.cpp \ ConstantMerge.cpp \ DeadArgumentElimination.cpp \ + ElimAvailExtern.cpp \ ExtractGV.cpp \ FunctionAttrs.cpp \ GlobalDCE.cpp \ @@ -19,6 +20,7 @@ SRCS= ArgumentPromotion.cpp \ Inliner.cpp \ Internalize.cpp \ LoopExtractor.cpp \ + LowerBitSets.cpp \ MergeFunctions.cpp \ PartialInlining.cpp \ PassManagerBuilder.cpp \ diff --git a/lib/clang/libllvmlibdriver/Makefile b/lib/clang/libllvmlibdriver/Makefile new file mode 100644 index 0000000..863ef48 --- /dev/null +++ b/lib/clang/libllvmlibdriver/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= llvmlibdriver + +SRCDIR= lib/LibDriver +SRCS= LibDriver.cpp +CFLAGS+= -I${.CURDIR} + +TGHDRS= Options + +.include "../clang.lib.mk" diff --git a/lib/clang/libllvmlibdriver/Options.inc b/lib/clang/libllvmlibdriver/Options.inc new file mode 100644 index 0000000..37422c1 --- /dev/null +++ b/lib/clang/libllvmlibdriver/Options.inc @@ -0,0 +1,2 @@ +/* $FreeBSD$ */ +#include "Options.inc.h" diff --git a/lib/clang/libllvmlto/Makefile b/lib/clang/libllvmlto/Makefile new file mode 100644 index 0000000..776c45f --- /dev/null +++ b/lib/clang/libllvmlto/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.include <src.opts.mk> + +LIB= llvmlto + +SRCDIR= lib/LTO +SRCS= LTOCodeGenerator.cpp \ + LTOModule.cpp + +TGHDRS= Intrinsics + +.include "../clang.lib.mk" diff --git a/lib/clang/libllvmmc/Makefile b/lib/clang/libllvmmc/Makefile index f4582c2..5acd2cc 100644 --- a/lib/clang/libllvmmc/Makefile +++ b/lib/clang/libllvmmc/Makefile @@ -18,14 +18,13 @@ SRCS= ConstantPools.cpp \ MCCodeGenInfo.cpp \ MCContext.cpp \ MCDwarf.cpp \ - MCELF.cpp \ MCELFObjectTargetWriter.cpp \ MCELFStreamer.cpp \ MCExpr.cpp \ MCInst.cpp \ MCInstPrinter.cpp \ MCInstrAnalysis.cpp \ - MCLabel.cpp \ + MCInstrDesc.cpp \ MCLinkerOptimizationHint.cpp \ MCMachOStreamer.cpp \ MCMachObjectTargetWriter.cpp \ @@ -34,6 +33,7 @@ SRCS= ConstantPools.cpp \ MCObjectStreamer.cpp \ MCObjectWriter.cpp \ MCRegisterInfo.cpp \ + MCSchedule.cpp \ MCSection.cpp \ MCSectionCOFF.cpp \ MCSectionELF.cpp \ @@ -41,7 +41,7 @@ SRCS= ConstantPools.cpp \ MCStreamer.cpp \ MCSubtargetInfo.cpp \ MCSymbol.cpp \ - MCSymbolizer.cpp \ + MCSymbolELF.cpp \ MCTargetOptions.cpp \ MCValue.cpp \ MCWin64EH.cpp \ @@ -50,7 +50,15 @@ SRCS= ConstantPools.cpp \ StringTableBuilder.cpp \ SubtargetFeature.cpp \ WinCOFFObjectWriter.cpp \ - WinCOFFStreamer.cpp \ + WinCOFFStreamer.cpp + +.if ${MK_CLANG_EXTRAS} != "no" +SRCS+= MCLabel.cpp \ YAML.cpp +.endif + +.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no" +SRCS+= MCSymbolizer.cpp +.endif .include "../clang.lib.mk" diff --git a/lib/clang/libllvmmcdisassembler/Makefile b/lib/clang/libllvmmcdisassembler/Makefile index 2f8a940..41a5621 100644 --- a/lib/clang/libllvmmcdisassembler/Makefile +++ b/lib/clang/libllvmmcdisassembler/Makefile @@ -1,13 +1,16 @@ # $FreeBSD$ -.include <bsd.own.mk> +.include <src.opts.mk> LIB= llvmmcdisassembler SRCDIR= lib/MC/MCDisassembler SRCS= Disassembler.cpp \ - MCDisassembler.cpp \ - MCExternalSymbolizer.cpp \ MCRelocationInfo.cpp +.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no" +SRCS+= MCDisassembler.cpp \ + MCExternalSymbolizer.cpp +.endif + .include "../clang.lib.mk" diff --git a/lib/clang/libllvmmcjit/Makefile b/lib/clang/libllvmmcjit/Makefile index ea3cf07..207fd81 100644 --- a/lib/clang/libllvmmcjit/Makefile +++ b/lib/clang/libllvmmcjit/Makefile @@ -5,7 +5,6 @@ LIB= llvmmcjit SRCDIR= lib/ExecutionEngine/MCJIT -SRCS= MCJIT.cpp \ - SectionMemoryManager.cpp +SRCS= MCJIT.cpp .include "../clang.lib.mk" diff --git a/lib/clang/libllvmmipscodegen/Makefile b/lib/clang/libllvmmipscodegen/Makefile index 4495f50..b40b65c 100644 --- a/lib/clang/libllvmmipscodegen/Makefile +++ b/lib/clang/libllvmmipscodegen/Makefile @@ -34,7 +34,6 @@ SRCS= Mips16FrameLowering.cpp \ MipsSEISelLowering.cpp \ MipsSEInstrInfo.cpp \ MipsSERegisterInfo.cpp \ - MipsSelectionDAGInfo.cpp \ MipsSubtarget.cpp \ MipsTargetMachine.cpp \ MipsTargetObjectFile.cpp diff --git a/lib/clang/libllvmmirparser/Makefile b/lib/clang/libllvmmirparser/Makefile new file mode 100644 index 0000000..a3a64c6 --- /dev/null +++ b/lib/clang/libllvmmirparser/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +.include <src.opts.mk> + +LIB= llvmmirparser + +SRCDIR= lib/CodeGen/MIRParser +SRCS= MIParser.cpp \ + MIRParser.cpp + +.if ${MK_CLANG_EXTRAS} != "no" +SRCS+= MILexer.cpp +.endif + +.include "../clang.lib.mk" diff --git a/lib/clang/libllvmobjcarcopts/Makefile b/lib/clang/libllvmobjcarcopts/Makefile index ee3ca83..308e11a 100644 --- a/lib/clang/libllvmobjcarcopts/Makefile +++ b/lib/clang/libllvmobjcarcopts/Makefile @@ -5,16 +5,17 @@ LIB= llvmobjcarcopts SRCDIR= lib/Transforms/ObjCARC -SRCS= ObjCARC.cpp \ - ObjCARCOpts.cpp \ - ObjCARCExpand.cpp \ +SRCS= ARCInstKind.cpp \ + DependencyAnalysis.cpp \ + ObjCARC.cpp \ ObjCARCAPElim.cpp \ ObjCARCAliasAnalysis.cpp \ - ObjCARCUtil.cpp \ ObjCARCContract.cpp \ - DependencyAnalysis.cpp \ + ObjCARCExpand.cpp \ + ObjCARCOpts.cpp \ ProvenanceAnalysis.cpp \ - ProvenanceAnalysisEvaluator.cpp + ProvenanceAnalysisEvaluator.cpp \ + PtrState.cpp TGHDRS= Intrinsics diff --git a/lib/clang/libllvmobject/Makefile b/lib/clang/libllvmobject/Makefile index 804fff8..c575ecd 100644 --- a/lib/clang/libllvmobject/Makefile +++ b/lib/clang/libllvmobject/Makefile @@ -1,11 +1,12 @@ # $FreeBSD$ -.include <bsd.own.mk> +.include <src.opts.mk> LIB= llvmobject SRCDIR= lib/Object SRCS= Archive.cpp \ + ArchiveWriter.cpp \ Binary.cpp \ COFFObjectFile.cpp \ COFFYAML.cpp \ @@ -16,9 +17,13 @@ SRCS= Archive.cpp \ IRObjectFile.cpp \ MachOObjectFile.cpp \ MachOUniversal.cpp \ - Object.cpp \ ObjectFile.cpp \ RecordStreamer.cpp \ SymbolicFile.cpp +.if ${MK_CLANG_EXTRAS} != "no" +SRCS+= Object.cpp \ + SymbolSize.cpp +.endif + .include "../clang.lib.mk" diff --git a/lib/clang/libllvmorcjit/Makefile b/lib/clang/libllvmorcjit/Makefile new file mode 100644 index 0000000..84621de --- /dev/null +++ b/lib/clang/libllvmorcjit/Makefile @@ -0,0 +1,13 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= llvmorcjit + +SRCDIR= lib/ExecutionEngine/Orc +SRCS= ExecutionUtils.cpp \ + IndirectionUtils.cpp \ + OrcMCJITReplacement.cpp \ + OrcTargetSupport.cpp + +.include "../clang.lib.mk" diff --git a/lib/clang/libllvmpasses/Makefile b/lib/clang/libllvmpasses/Makefile new file mode 100644 index 0000000..ed4e20d --- /dev/null +++ b/lib/clang/libllvmpasses/Makefile @@ -0,0 +1,12 @@ +# $FreeBSD$ + +.include <src.opts.mk> + +LIB= llvmpasses + +SRCDIR= lib/Passes +SRCS= PassBuilder.cpp + +TGHDRS= Intrinsics + +.include "../clang.lib.mk" diff --git a/lib/clang/libllvmpowerpccodegen/Makefile b/lib/clang/libllvmpowerpccodegen/Makefile index 211bc22..ea83b75 100644 --- a/lib/clang/libllvmpowerpccodegen/Makefile +++ b/lib/clang/libllvmpowerpccodegen/Makefile @@ -8,20 +8,27 @@ SRCDIR= lib/Target/PowerPC SRCS= PPCAsmPrinter.cpp \ PPCBranchSelector.cpp \ PPCCTRLoops.cpp \ + PPCEarlyReturn.cpp \ PPCFastISel.cpp \ PPCFrameLowering.cpp \ PPCHazardRecognizers.cpp \ PPCISelDAGToDAG.cpp \ PPCISelLowering.cpp \ PPCInstrInfo.cpp \ + PPCLoopDataPrefetch.cpp \ + PPCLoopPreIncPrep.cpp \ PPCMCInstLower.cpp \ PPCMachineFunctionInfo.cpp \ PPCRegisterInfo.cpp \ - PPCSelectionDAGInfo.cpp \ PPCSubtarget.cpp \ + PPCTLSDynamicCall.cpp \ + PPCTOCRegDeps.cpp \ PPCTargetMachine.cpp \ PPCTargetObjectFile.cpp \ - PPCTargetTransformInfo.cpp + PPCTargetTransformInfo.cpp \ + PPCVSXCopy.cpp \ + PPCVSXFMAMutate.cpp \ + PPCVSXSwapRemoval.cpp TGHDRS= Intrinsics \ PPCGenCallingConv \ diff --git a/lib/clang/libllvmprofiledata/Makefile b/lib/clang/libllvmprofiledata/Makefile index 332bf1c..a38a190 100644 --- a/lib/clang/libllvmprofiledata/Makefile +++ b/lib/clang/libllvmprofiledata/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -.include <bsd.own.mk> +.include <src.opts.mk> LIB= llvmprofiledata @@ -12,7 +12,10 @@ SRCS= CoverageMapping.cpp \ InstrProfReader.cpp \ InstrProfWriter.cpp \ SampleProf.cpp \ - SampleProfReader.cpp \ - SampleProfWriter.cpp + SampleProfReader.cpp + +.if ${MK_CLANG_EXTRAS} != "no" +SRCS+= SampleProfWriter.cpp +.endif .include "../clang.lib.mk" diff --git a/lib/clang/libllvmruntimedyld/Makefile b/lib/clang/libllvmruntimedyld/Makefile index 75eb843..a4326b5 100644 --- a/lib/clang/libllvmruntimedyld/Makefile +++ b/lib/clang/libllvmruntimedyld/Makefile @@ -7,6 +7,7 @@ LIB= llvmruntimedyld SRCDIR= lib/ExecutionEngine/RuntimeDyld SRCS= RTDyldMemoryManager.cpp \ RuntimeDyld.cpp \ + RuntimeDyldCOFF.cpp \ RuntimeDyldChecker.cpp \ RuntimeDyldELF.cpp \ RuntimeDyldMachO.cpp diff --git a/lib/clang/libllvmscalaropts/Makefile b/lib/clang/libllvmscalaropts/Makefile index bb8dc96..8579df9 100644 --- a/lib/clang/libllvmscalaropts/Makefile +++ b/lib/clang/libllvmscalaropts/Makefile @@ -7,6 +7,7 @@ LIB= llvmscalaropts SRCDIR= lib/Transforms/Scalar SRCS= ADCE.cpp \ AlignmentFromAssumptions.cpp \ + BDCE.cpp \ ConstantHoisting.cpp \ ConstantProp.cpp \ CorrelatedValuePropagation.cpp \ @@ -14,24 +15,32 @@ SRCS= ADCE.cpp \ DeadStoreElimination.cpp \ EarlyCSE.cpp \ FlattenCFGPass.cpp \ + Float2Int.cpp \ GVN.cpp \ IndVarSimplify.cpp \ + InductiveRangeCheckElimination.cpp \ JumpThreading.cpp \ LICM.cpp \ LoadCombine.cpp \ LoopDeletion.cpp \ + LoopDistribute.cpp \ LoopIdiomRecognize.cpp \ + LoopInterchange.cpp \ LoopRerollPass.cpp \ LoopRotation.cpp \ LoopStrengthReduce.cpp \ LoopUnrollPass.cpp \ LoopUnswitch.cpp \ LowerAtomic.cpp \ + LowerExpectIntrinsic.cpp \ MemCpyOptimizer.cpp \ MergedLoadStoreMotion.cpp \ + NaryReassociate.cpp \ PartiallyInlineLibCalls.cpp \ + PlaceSafepoints.cpp \ Reassociate.cpp \ Reg2Mem.cpp \ + RewriteStatepointsForGC.cpp \ SCCP.cpp \ SROA.cpp \ SampleProfile.cpp \ @@ -40,6 +49,8 @@ SRCS= ADCE.cpp \ SeparateConstOffsetFromGEP.cpp \ SimplifyCFGPass.cpp \ Sink.cpp \ + SpeculativeExecution.cpp \ + StraightLineStrengthReduce.cpp \ StructurizeCFG.cpp \ TailRecursionElimination.cpp diff --git a/lib/clang/libllvmsparccodegen/Makefile b/lib/clang/libllvmsparccodegen/Makefile index 29bbae1..35b1310 100644 --- a/lib/clang/libllvmsparccodegen/Makefile +++ b/lib/clang/libllvmsparccodegen/Makefile @@ -14,7 +14,6 @@ SRCS= DelaySlotFiller.cpp \ SparcMCInstLower.cpp \ SparcMachineFunctionInfo.cpp \ SparcRegisterInfo.cpp \ - SparcSelectionDAGInfo.cpp \ SparcSubtarget.cpp \ SparcTargetMachine.cpp \ SparcTargetObjectFile.cpp diff --git a/lib/clang/libllvmsupport/Makefile b/lib/clang/libllvmsupport/Makefile index f325b15..860285b 100644 --- a/lib/clang/libllvmsupport/Makefile +++ b/lib/clang/libllvmsupport/Makefile @@ -9,7 +9,6 @@ SRCS= APFloat.cpp \ APInt.cpp \ APSInt.cpp \ ARMBuildAttrs.cpp \ - ARMWinEH.cpp \ Allocator.cpp \ Atomic.cpp \ BlockFrequency.cpp \ @@ -27,7 +26,6 @@ SRCS= APFloat.cpp \ DynamicLibrary.cpp \ Errno.cpp \ ErrorHandling.cpp \ - FileOutputBuffer.cpp \ FoldingSet.cpp \ FormattedStream.cpp \ GraphWriter.cpp \ @@ -36,8 +34,6 @@ SRCS= APFloat.cpp \ IntEqClasses.cpp \ IntervalMap.cpp \ IntrusiveRefCntPtr.cpp \ - IsInf.cpp \ - IsNAN.cpp \ LEB128.cpp \ LineIterator.cpp \ Locale.cpp \ @@ -45,7 +41,6 @@ SRCS= APFloat.cpp \ MD5.cpp \ ManagedStatic.cpp \ MathExtras.cpp \ - Memory.cpp \ MemoryBuffer.cpp \ MemoryObject.cpp \ Mutex.cpp \ @@ -71,6 +66,8 @@ SRCS= APFloat.cpp \ StringMap.cpp \ StringPool.cpp \ StringRef.cpp \ + StringSaver.cpp \ + TargetParser.cpp \ TargetRegistry.cpp \ ThreadLocal.cpp \ Threading.cpp \ @@ -81,7 +78,6 @@ SRCS= APFloat.cpp \ Twine.cpp \ Unicode.cpp \ Valgrind.cpp \ - Watchdog.cpp \ YAMLParser.cpp \ YAMLTraits.cpp \ circular_raw_ostream.cpp \ @@ -94,9 +90,17 @@ SRCS= APFloat.cpp \ regstrlcpy.c .if ${MK_CLANG_EXTRAS} != "no" -SRCS+= DataStream.cpp \ +SRCS+= ARMWinEH.cpp \ + COM.cpp \ + DataStream.cpp \ + FileOutputBuffer.cpp \ FileUtilities.cpp \ - SystemUtils.cpp + SystemUtils.cpp \ + Watchdog.cpp +.endif + +.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no" +SRCS+= Memory.cpp .endif .include "../clang.lib.mk" diff --git a/lib/clang/libllvmtablegen/Makefile b/lib/clang/libllvmtablegen/Makefile index fb0c5b8..be5e521 100644 --- a/lib/clang/libllvmtablegen/Makefile +++ b/lib/clang/libllvmtablegen/Makefile @@ -10,8 +10,8 @@ SRCS= Error.cpp \ Record.cpp \ SetTheory.cpp \ StringMatcher.cpp \ - TableGenBackend.cpp \ TGLexer.cpp \ - TGParser.cpp + TGParser.cpp \ + TableGenBackend.cpp .include "../clang.lib.mk" diff --git a/lib/clang/libllvmtarget/Makefile b/lib/clang/libllvmtarget/Makefile index 3f9619b..82410e0 100644 --- a/lib/clang/libllvmtarget/Makefile +++ b/lib/clang/libllvmtarget/Makefile @@ -1,16 +1,21 @@ # $FreeBSD$ -.include <bsd.own.mk> +.include <src.opts.mk> LIB= llvmtarget SRCDIR= lib/Target SRCS= Target.cpp \ - TargetIntrinsicInfo.cpp \ - TargetLibraryInfo.cpp \ TargetLoweringObjectFile.cpp \ TargetMachine.cpp \ TargetMachineC.cpp \ + TargetRecip.cpp \ TargetSubtargetInfo.cpp +.if ${MK_CLANG_EXTRAS} != "no" +SRCS+= TargetIntrinsicInfo.cpp +.endif + +TGHDRS= Intrinsics + .include "../clang.lib.mk" diff --git a/lib/clang/libllvmtransformutils/Makefile b/lib/clang/libllvmtransformutils/Makefile index a3cf212..f5043e6 100644 --- a/lib/clang/libllvmtransformutils/Makefile +++ b/lib/clang/libllvmtransformutils/Makefile @@ -27,7 +27,8 @@ SRCS= ASanStackFrameLayout.cpp \ LoopSimplify.cpp \ LoopUnroll.cpp \ LoopUnrollRuntime.cpp \ - LowerExpectIntrinsic.cpp \ + LoopUtils.cpp \ + LoopVersioning.cpp \ LowerInvoke.cpp \ LowerSwitch.cpp \ Mem2Reg.cpp \ diff --git a/lib/clang/libllvmvectorize/Makefile b/lib/clang/libllvmvectorize/Makefile index 7a63c9e..bfe1a10 100644 --- a/lib/clang/libllvmvectorize/Makefile +++ b/lib/clang/libllvmvectorize/Makefile @@ -1,14 +1,17 @@ # $FreeBSD$ -.include <bsd.own.mk> +.include <src.opts.mk> LIB= llvmvectorize SRCDIR= lib/Transforms/Vectorize SRCS= BBVectorize.cpp \ LoopVectorize.cpp \ - SLPVectorizer.cpp \ - Vectorize.cpp + SLPVectorizer.cpp + +.if ${MK_CLANG_EXTRAS} != "no" +SRCS+= Vectorize.cpp +.endif TGHDRS= Intrinsics diff --git a/lib/clang/libllvmx86codegen/Makefile b/lib/clang/libllvmx86codegen/Makefile index b030b1f..0f6776a 100644 --- a/lib/clang/libllvmx86codegen/Makefile +++ b/lib/clang/libllvmx86codegen/Makefile @@ -7,6 +7,7 @@ LIB= llvmx86codegen SRCDIR= lib/Target/X86 SRCS= X86AsmPrinter.cpp \ X86CallFrameOptimization.cpp \ + X86ExpandPseudo.cpp \ X86FastISel.cpp \ X86FixupLEAs.cpp \ X86FloatingPoint.cpp \ @@ -23,7 +24,8 @@ SRCS= X86AsmPrinter.cpp \ X86TargetMachine.cpp \ X86TargetObjectFile.cpp \ X86TargetTransformInfo.cpp \ - X86VZeroUpper.cpp + X86VZeroUpper.cpp \ + X86WinEHState.cpp TGHDRS= Intrinsics \ X86GenCallingConv \ diff --git a/lib/libc++/Makefile b/lib/libc++/Makefile index 469ee47..f9bbf7e 100644 --- a/lib/libc++/Makefile +++ b/lib/libc++/Makefile @@ -81,7 +81,7 @@ STD_HEADERS= __bit_reference\ __std_stream\ __tree\ __tuple\ - __tuple_03\ + __undef___deallocate\ __undef_min_max\ algorithm\ array\ @@ -178,9 +178,14 @@ STD+= ${LIBCXXRTDIR}/${hdr} STDDIR= ${CXXINCLUDEDIR} EXP_HEADERS= __config\ + algorithm\ + chrono\ dynarray\ optional\ + ratio\ string_view\ + system_error\ + tuple\ type_traits\ utility diff --git a/lib/libclang_rt/Makefile b/lib/libclang_rt/Makefile index b082e38..18ad0d4 100644 --- a/lib/libclang_rt/Makefile +++ b/lib/libclang_rt/Makefile @@ -4,10 +4,11 @@ .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" SUBDIR+= asan\ + asan-preinit\ asan_cxx\ - san\ - ubsan\ - ubsan_cxx + safestack\ + ubsan_standalone\ + ubsan_standalone_cxx .endif .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" || \ diff --git a/lib/libclang_rt/Makefile.inc b/lib/libclang_rt/Makefile.inc index 03873f2..ef381c9 100644 --- a/lib/libclang_rt/Makefile.inc +++ b/lib/libclang_rt/Makefile.inc @@ -5,7 +5,7 @@ CRTARCH=${MACHINE_CPUARCH:C/amd64/x86_64/} CRTSRC=${.CURDIR}/../../../contrib/compiler-rt -LIBDIR=/usr/lib/clang/3.6.1/lib/freebsd +LIBDIR=/usr/lib/clang/3.7.0/lib/freebsd NO_PIC= MK_PROFILE=no @@ -18,6 +18,9 @@ CFLAGS+=${PICFLAG} CFLAGS+=-fno-builtin CFLAGS+=-fno-exceptions CFLAGS+=-fno-rtti +.if ${COMPILER_VERSION} >= 30700 +CFLAGS+=-fno-sanitize=safe-stack +.endif CFLAGS+=-fno-stack-protector CFLAGS+=-funwind-tables CFLAGS+=-fvisibility-inlines-hidden diff --git a/lib/libclang_rt/asan-preinit/Makefile b/lib/libclang_rt/asan-preinit/Makefile new file mode 100644 index 0000000..c15f84b --- /dev/null +++ b/lib/libclang_rt/asan-preinit/Makefile @@ -0,0 +1,11 @@ +# $FreeBSD$ + +.include <bsd.init.mk> + +LIB= clang_rt.asan-preinit-${CRTARCH} + +.PATH: ${CRTSRC}/lib/asan + +SRCS= asan_preinit.cc + +.include <bsd.lib.mk> diff --git a/lib/libclang_rt/asan/Makefile b/lib/libclang_rt/asan/Makefile index e751970..3090c93 100644 --- a/lib/libclang_rt/asan/Makefile +++ b/lib/libclang_rt/asan/Makefile @@ -7,7 +7,8 @@ LIB= clang_rt.asan-${CRTARCH} .PATH: ${CRTSRC}/lib/asan\ ${CRTSRC}/lib/interception\ ${CRTSRC}/lib/sanitizer_common\ - ${CRTSRC}/lib/lsan + ${CRTSRC}/lib/lsan\ + ${CRTSRC}/lib/ubsan SRCS= asan_preinit.cc\ asan_allocator.cc\ @@ -60,6 +61,7 @@ SRCS= asan_preinit.cc\ sanitizer_suppressions.cc\ sanitizer_symbolizer.cc\ sanitizer_symbolizer_libbacktrace.cc\ + sanitizer_symbolizer_mac.cc\ sanitizer_symbolizer_win.cc\ sanitizer_tls_get_addr.cc\ sanitizer_thread_registry.cc\ @@ -73,8 +75,14 @@ SRCS= asan_preinit.cc\ sanitizer_stoptheworld_linux_libcdep.cc\ sanitizer_symbolizer_libcdep.cc\ sanitizer_symbolizer_posix_libcdep.cc\ - sanitizer_unwind_posix_libcdep.cc\ + sanitizer_symbolizer_process_libcdep.cc\ + sanitizer_unwind_linux_libcdep.cc\ lsan_common.cc\ - lsan_common_linux.cc + lsan_common_linux.cc\ + ubsan_diag.cc\ + ubsan_init.cc\ + ubsan_flags.cc\ + ubsan_handlers.cc\ + ubsan_value.cc .include <bsd.lib.mk> diff --git a/lib/libclang_rt/asan_cxx/Makefile b/lib/libclang_rt/asan_cxx/Makefile index 9763c16..20ee25e 100644 --- a/lib/libclang_rt/asan_cxx/Makefile +++ b/lib/libclang_rt/asan_cxx/Makefile @@ -4,8 +4,15 @@ LIB= clang_rt.asan_cxx-${CRTARCH} -.PATH: ${CRTSRC}/lib/asan +CXXFLAGS+=-frtti -SRCS= asan_new_delete.cc +.PATH: ${CRTSRC}/lib/asan\ + ${CRTSRC}/lib/ubsan + +SRCS= asan_new_delete.cc\ + ubsan_handlers_cxx.cc\ + ubsan_type_hash.cc\ + ubsan_type_hash_itanium.cc\ + ubsan_type_hash_win.cc .include <bsd.lib.mk> diff --git a/lib/libclang_rt/profile/Makefile b/lib/libclang_rt/profile/Makefile index 058a8f1..6acbb4e 100644 --- a/lib/libclang_rt/profile/Makefile +++ b/lib/libclang_rt/profile/Makefile @@ -13,5 +13,6 @@ SRCS= GCDAProfiling.c\ InstrProfilingPlatformDarwin.c\ InstrProfilingPlatformOther.c\ InstrProfilingRuntime.cc\ + InstrProfilingUtil.c .include <bsd.lib.mk> diff --git a/lib/libclang_rt/safestack/Makefile b/lib/libclang_rt/safestack/Makefile new file mode 100644 index 0000000..f684fe2 --- /dev/null +++ b/lib/libclang_rt/safestack/Makefile @@ -0,0 +1,47 @@ +# $FreeBSD$ + +.include <bsd.init.mk> + +LIB= clang_rt.safestack-${CRTARCH} + +.PATH: ${CRTSRC}/lib/interception\ + ${CRTSRC}/lib/sanitizer_common\ + ${CRTSRC}/lib/safestack + +SRCS= interception_linux.cc\ + interception_mac.cc\ + interception_win.cc\ + interception_type_test.cc\ + sanitizer_allocator.cc\ + sanitizer_common.cc\ + sanitizer_deadlock_detector1.cc\ + sanitizer_deadlock_detector2.cc\ + sanitizer_flags.cc\ + sanitizer_flag_parser.cc\ + sanitizer_libc.cc\ + sanitizer_libignore.cc\ + sanitizer_linux.cc\ + sanitizer_mac.cc\ + sanitizer_persistent_allocator.cc\ + sanitizer_platform_limits_linux.cc\ + sanitizer_platform_limits_posix.cc\ + sanitizer_posix.cc\ + sanitizer_printf.cc\ + sanitizer_procmaps_common.cc\ + sanitizer_procmaps_freebsd.cc\ + sanitizer_procmaps_linux.cc\ + sanitizer_procmaps_mac.cc\ + sanitizer_stackdepot.cc\ + sanitizer_stacktrace.cc\ + sanitizer_stacktrace_printer.cc\ + sanitizer_suppressions.cc\ + sanitizer_symbolizer.cc\ + sanitizer_symbolizer_libbacktrace.cc\ + sanitizer_symbolizer_mac.cc\ + sanitizer_symbolizer_win.cc\ + sanitizer_tls_get_addr.cc\ + sanitizer_thread_registry.cc\ + sanitizer_win.cc\ + safestack.cc + +.include <bsd.lib.mk> diff --git a/lib/libclang_rt/ubsan/Makefile b/lib/libclang_rt/ubsan/Makefile deleted file mode 100644 index 34bca81..0000000 --- a/lib/libclang_rt/ubsan/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# $FreeBSD$ - -.include <bsd.init.mk> - -LIB= clang_rt.ubsan-${CRTARCH} - -.PATH: ${CRTSRC}/lib/ubsan - -SRCS= ubsan_diag.cc\ - ubsan_init.cc\ - ubsan_flags.cc\ - ubsan_handlers.cc\ - ubsan_value.cc - -.include <bsd.lib.mk> - - diff --git a/lib/libclang_rt/san/Makefile b/lib/libclang_rt/ubsan_standalone/Makefile index da8fe13..3ba5ca0 100644 --- a/lib/libclang_rt/san/Makefile +++ b/lib/libclang_rt/ubsan_standalone/Makefile @@ -2,9 +2,10 @@ .include <bsd.init.mk> -LIB= clang_rt.san-${CRTARCH} +LIB= clang_rt.ubsan_standalone-${CRTARCH} .PATH: ${CRTSRC}/lib/sanitizer_common\ + ${CRTSRC}/lib/ubsan SRCS= sanitizer_allocator.cc\ sanitizer_common.cc\ @@ -31,6 +32,7 @@ SRCS= sanitizer_allocator.cc\ sanitizer_suppressions.cc\ sanitizer_symbolizer.cc\ sanitizer_symbolizer_libbacktrace.cc\ + sanitizer_symbolizer_mac.cc\ sanitizer_symbolizer_win.cc\ sanitizer_tls_get_addr.cc\ sanitizer_thread_registry.cc\ @@ -44,6 +46,13 @@ SRCS= sanitizer_allocator.cc\ sanitizer_stoptheworld_linux_libcdep.cc\ sanitizer_symbolizer_libcdep.cc\ sanitizer_symbolizer_posix_libcdep.cc\ - sanitizer_unwind_posix_libcdep.cc + sanitizer_symbolizer_process_libcdep.cc\ + sanitizer_unwind_linux_libcdep.cc\ + ubsan_diag.cc\ + ubsan_init.cc\ + ubsan_flags.cc\ + ubsan_handlers.cc\ + ubsan_value.cc\ + ubsan_init_standalone.cc .include <bsd.lib.mk> diff --git a/lib/libclang_rt/ubsan_cxx/Makefile b/lib/libclang_rt/ubsan_standalone_cxx/Makefile index e577a15..f893d7d 100644 --- a/lib/libclang_rt/ubsan_cxx/Makefile +++ b/lib/libclang_rt/ubsan_standalone_cxx/Makefile @@ -2,13 +2,15 @@ .include <bsd.init.mk> -LIB= clang_rt.ubsan_cxx-${CRTARCH} +LIB= clang_rt.ubsan_standalone_cxx-${CRTARCH} CXXFLAGS+=-frtti .PATH: ${CRTSRC}/lib/ubsan SRCS= ubsan_handlers_cxx.cc\ - ubsan_type_hash.cc + ubsan_type_hash.cc\ + ubsan_type_hash_itanium.cc\ + ubsan_type_hash_win.cc .include <bsd.lib.mk> diff --git a/lib/libcompiler_rt/Makefile b/lib/libcompiler_rt/Makefile index 22c9f89..86daee4 100644 --- a/lib/libcompiler_rt/Makefile +++ b/lib/libcompiler_rt/Makefile @@ -48,6 +48,7 @@ SRCF= absvdi2 \ divxc3 \ enable_execute_stack \ eprintf \ + extendhfsf2 \ ffsdi2 \ ffsti2 \ fixdfdi \ @@ -121,6 +122,8 @@ SRCF= absvdi2 \ subvsi3 \ subvti3 \ trampoline_setup \ + truncdfhf2 \ + truncsfhf2 \ ucmpdi2 \ ucmpti2 \ udivdi3 \ diff --git a/lib/libcxxrt/Version.map b/lib/libcxxrt/Version.map index 9767542..b825eaa 100644 --- a/lib/libcxxrt/Version.map +++ b/lib/libcxxrt/Version.map @@ -356,3 +356,9 @@ GLIBCXX_3.4.9 { }; } GLIBCXX_3.4; +GLIBCXX_3.4.22 { + extern "C++" { + "std::uncaught_exceptions()"; + }; +} GLIBCXX_3.4.9; + |