summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2014-05-30 18:28:13 +0000
committerjoerg <joerg@NetBSD.org>2014-05-30 18:28:13 +0000
commitb4e9e9004002ada78a29b201cb24031346909fae (patch)
treefaaf49ab30f31e2d2933c15ec05b68b236ea96c8
parentafb6842aba94daaa92cf6da14f14e79943a4b315 (diff)
Update build system for LLVM/Clang snapshot r209886. This brings in the
merged AArch64 backend and the move of eARM to DWARF exception handling for NetBSD. C++11 is required for building.
-rw-r--r--distrib/sets/lists/comp/md.amd643
-rw-r--r--distrib/sets/lists/comp/md.i3863
-rw-r--r--external/bsd/llvm/Makefile.inc8
-rw-r--r--external/bsd/llvm/bin/clang/Makefile10
-rw-r--r--external/bsd/llvm/bin/lld/Makefile5
-rw-r--r--external/bsd/llvm/bin/lldb/Makefile24
-rw-r--r--external/bsd/llvm/bin/llvm-readobj/Makefile5
-rw-r--r--external/bsd/llvm/config/clang/Config/config.h2
-rw-r--r--external/bsd/llvm/config/llvm/Config/config.h.in79
-rw-r--r--external/bsd/llvm/config/llvm/Support/DataTypes.h119
-rw-r--r--external/bsd/llvm/include/Makefile5
-rw-r--r--external/bsd/llvm/lib/Makefile12
-rw-r--r--external/bsd/llvm/lib/libLLVMAArch64CodeGen/Makefile24
-rw-r--r--external/bsd/llvm/lib/libLLVMAArch64Disassembler/Makefile5
-rw-r--r--external/bsd/llvm/lib/libLLVMAArch64MCTargetDesc/Makefile5
-rw-r--r--external/bsd/llvm/lib/libLLVMARMCodeGen/Makefile3
-rw-r--r--external/bsd/llvm/lib/libLLVMARMMCTargetDesc/Makefile6
-rw-r--r--external/bsd/llvm/lib/libLLVMAnalysis/Makefile4
-rw-r--r--external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile6
-rw-r--r--external/bsd/llvm/lib/libLLVMCodeGen/Makefile3
-rw-r--r--external/bsd/llvm/lib/libLLVMIR/Makefile4
-rw-r--r--external/bsd/llvm/lib/libLLVMMC/Makefile4
-rw-r--r--external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile3
-rw-r--r--external/bsd/llvm/lib/libLLVMMipsMCTargetDesc/Makefile3
-rw-r--r--external/bsd/llvm/lib/libLLVMObject/Makefile3
-rw-r--r--external/bsd/llvm/lib/libLLVMProfileData/Makefile17
-rw-r--r--external/bsd/llvm/lib/libLLVMScalarOpts/Makefile4
-rw-r--r--external/bsd/llvm/lib/libLLVMSupport/Makefile3
-rw-r--r--external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile4
-rw-r--r--external/bsd/llvm/lib/libLLVMX86AsmParser/Makefile5
-rw-r--r--external/bsd/llvm/lib/libLLVMX86CodeGen/Makefile3
-rw-r--r--external/bsd/llvm/lib/libLLVMX86Disassembler/Makefile4
-rw-r--r--external/bsd/llvm/lib/libLLVMX86MCTargetDesc/Makefile5
-rw-r--r--external/bsd/llvm/lib/libclangAnalysis/Makefile5
-rw-r--r--external/bsd/llvm/lib/libclangBasic/Makefile8
-rw-r--r--external/bsd/llvm/lib/libclangCodeGen/Makefile6
-rw-r--r--external/bsd/llvm/lib/libclangFrontend/Makefile5
-rw-r--r--external/bsd/llvm/lib/liblldDriver/Makefile5
-rw-r--r--external/bsd/llvm/lib/liblldReaderWriterELFMips/Makefile3
-rw-r--r--external/bsd/llvm/lib/liblldReaderWriterMachO/Makefile3
-rw-r--r--external/bsd/llvm/lib/liblldbAPI/Makefile3
-rw-r--r--external/bsd/llvm/lib/liblldbCommands/Makefile5
-rw-r--r--external/bsd/llvm/lib/liblldbCore/Makefile8
-rw-r--r--external/bsd/llvm/lib/liblldbHostCommon/Makefile3
-rw-r--r--external/bsd/llvm/lib/liblldbPluginABIMacOSX_arm64/Makefile15
-rw-r--r--external/bsd/llvm/lib/liblldbPluginInstructionARM64/Makefile15
-rw-r--r--external/bsd/llvm/lib/liblldbPluginJITLoaderGDB/Makefile15
-rw-r--r--external/bsd/llvm/lib/liblldbPluginObjectFileJIT/Makefile15
-rw-r--r--external/bsd/llvm/lib/liblldbPluginProcessElfCore/Makefile6
-rw-r--r--external/bsd/llvm/lib/liblldbPluginProcessNetBSD/Makefile5
-rw-r--r--external/bsd/llvm/lib/liblldbPluginProcessPOSIX/Makefile20
-rw-r--r--external/bsd/llvm/lib/liblldbPluginProcessUtility/Makefile11
-rw-r--r--external/bsd/llvm/lib/liblldbTarget/Makefile8
-rw-r--r--external/bsd/llvm/lib/liblldbUtility/Makefile3
-rw-r--r--tools/llvm-lib/libLLVMDebugInfo/Makefile3
-rw-r--r--tools/llvm-lib/libLLVMProfileData/Makefile3
56 files changed, 298 insertions, 268 deletions
diff --git a/distrib/sets/lists/comp/md.amd64 b/distrib/sets/lists/comp/md.amd64
index a80d326da87..efe89bd8136 100644
--- a/distrib/sets/lists/comp/md.amd64
+++ b/distrib/sets/lists/comp/md.amd64
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.219 2014/05/15 16:32:28 apb Exp $
+# $NetBSD: md.amd64,v 1.220 2014/05/30 18:28:13 joerg Exp $
./usr/include/amd64 comp-c-include
./usr/include/amd64/ansi.h comp-c-include
@@ -183,6 +183,7 @@
./usr/include/clang-3.5/f16cintrin.h comp-c-include llvm
./usr/include/clang-3.5/fma4intrin.h comp-c-include llvm
./usr/include/clang-3.5/fmaintrin.h comp-c-include llvm
+./usr/include/clang-3.5/ia32intrin.h comp-c-include llvm
./usr/include/clang-3.5/immintrin.h comp-c-include llvm
./usr/include/clang-3.5/lzcntintrin.h comp-c-include llvm
./usr/include/clang-3.5/mm3dnow.h comp-c-include llvm
diff --git a/distrib/sets/lists/comp/md.i386 b/distrib/sets/lists/comp/md.i386
index 4d073b22f20..55e58e923f6 100644
--- a/distrib/sets/lists/comp/md.i386
+++ b/distrib/sets/lists/comp/md.i386
@@ -1,4 +1,4 @@
-# $NetBSD: md.i386,v 1.145 2014/02/12 23:24:09 dsl Exp $
+# $NetBSD: md.i386,v 1.146 2014/05/30 18:28:13 joerg Exp $
./usr/include/clang-3.0/avx2intrin.h comp-obsolete obsolete
./usr/include/clang-3.0/avxintrin.h comp-obsolete obsolete
./usr/include/clang-3.0/bmi2intrin.h comp-obsolete obsolete
@@ -113,6 +113,7 @@
./usr/include/clang-3.5/f16cintrin.h comp-c-include llvm
./usr/include/clang-3.5/fma4intrin.h comp-c-include llvm
./usr/include/clang-3.5/fmaintrin.h comp-c-include llvm
+./usr/include/clang-3.5/ia32intrin.h comp-c-include llvm
./usr/include/clang-3.5/immintrin.h comp-c-include llvm
./usr/include/clang-3.5/lzcntintrin.h comp-c-include llvm
./usr/include/clang-3.5/mm3dnow.h comp-c-include llvm
diff --git a/external/bsd/llvm/Makefile.inc b/external/bsd/llvm/Makefile.inc
index 5605aa0bc2e..48ff284ac33 100644
--- a/external/bsd/llvm/Makefile.inc
+++ b/external/bsd/llvm/Makefile.inc
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.72 2014/03/04 21:05:05 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.73 2014/05/30 18:28:13 joerg Exp $
.if !defined(LLVM_TOPLEVEL_MK)
LLVM_TOPLEVEL_MK=
@@ -8,7 +8,7 @@ LLVM_TOPLEVEL_MK=
SVN_ROOT= http://llvm.org/svn/llvm-project
SVN_BRANCH= trunk
-COMMON_REVISION= 202566
+COMMON_REVISION= 209886
CLANG_REVISION= ${COMMON_REVISION}
LLD_REVISION= ${COMMON_REVISION}
LLDB_REVISION= ${COMMON_REVISION}
@@ -41,18 +41,14 @@ LLVM_INCLUDE_OBJDIR!= cd ${NETBSDSRCDIR}/tools/llvm-include && ${PRINTOBJDIR}
LLVM_TOOLCONF_OBJDIR!= cd ${NETBSDSRCDIR}/tools/llvm && ${PRINTOBJDIR}
HOST_CPPFLAGS+= ${CPPFLAGS}
HOST_CXXFLAGS+= -O2 -fno-rtti -fno-exceptions
-.if ${MKLLD:Uno} == "yes"
HOST_CPPFLAGS+= -std=c++11
-.endif
.else
LLVM_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config
CLANG_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config
MCLINKER_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config/mclinker
LLVM_INCLUDE_OBJDIR!= cd ${LLVM_TOPLEVEL}/include && ${PRINTOBJDIR}
-.if ${MKLLD:Uno} == "yes" || ${MKLLDB:Uno} == "yes"
CPPFLAGS+= -std=c++11
-.endif
.if ${MKLLDB:Uno} == "yes"
CPPFLAGS+= -DLLDB_DISABLE_PYTHON
.endif
diff --git a/external/bsd/llvm/bin/clang/Makefile b/external/bsd/llvm/bin/clang/Makefile
index ac13aa86a80..4bd70ee62e1 100644
--- a/external/bsd/llvm/bin/clang/Makefile
+++ b/external/bsd/llvm/bin/clang/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2014/02/14 20:23:56 joerg Exp $
+# $NetBSD: Makefile,v 1.31 2014/05/30 18:28:13 joerg Exp $
PROG_CXX= clang
NOMAN= yes
@@ -75,10 +75,10 @@ LLVM_LIBS+= \
X86Utils \
X86AsmParser \
X86AsmPrinter \
- Object \
SelectionDAG \
AsmPrinter \
CodeGen \
+ ProfileData \
Vectorize \
Target \
InstCombine \
@@ -88,6 +88,7 @@ LLVM_LIBS+= \
MCDisassembler \
MCParser \
MC \
+ Object \
Linker \
TransformsUtils \
ipa \
@@ -97,4 +98,9 @@ LLVM_LIBS+= \
.include "${.PARSEDIR}/../../link.mk"
+LDADD+= -lz
+.if !defined(HOSTPROG)
+DPADD+= ${LIBZ}
+.endif
+
.include <bsd.prog.mk>
diff --git a/external/bsd/llvm/bin/lld/Makefile b/external/bsd/llvm/bin/lld/Makefile
index 4851e8ba278..0555de9ae94 100644
--- a/external/bsd/llvm/bin/lld/Makefile
+++ b/external/bsd/llvm/bin/lld/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2014/01/05 16:38:06 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2014/05/30 18:28:13 joerg Exp $
PROG_CXX= lld
NOMAN= yes
@@ -27,6 +27,9 @@ LLD_LIBS+= \
LLVM_LIBS+= \
Object \
+ BitReader \
+ IR \
+ DebugInfo \
Option \
Support
diff --git a/external/bsd/llvm/bin/lldb/Makefile b/external/bsd/llvm/bin/lldb/Makefile
index 02d35cc45d1..32a0aa2376a 100644
--- a/external/bsd/llvm/bin/lldb/Makefile
+++ b/external/bsd/llvm/bin/lldb/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2013/10/20 14:53:22 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2014/05/30 18:28:13 joerg Exp $
PROG_CXX= lldb
NOMAN= yes
@@ -8,9 +8,6 @@ NOMAN= yes
.PATH: ${LLDB_SRCDIR}/tools/driver
SRCS= Driver.cpp \
- ELWrapper.cpp \
- GetOptWrapper.cpp \
- IOChannel.cpp \
Platform.cpp
CPPFLAGS.Driver.cpp+= -Dgetopt_long_only=getopt_long
@@ -19,6 +16,7 @@ LLDB_LIBS+= \
API \
Log \
PluginInstructionARM \
+ PluginInstructionARM64 \
PluginProcessGDBRemote \
PluginProcessMachCore \
PluginProcessPOSIX \
@@ -40,6 +38,7 @@ LLDB_LIBS+= \
Core \
DataFormatters \
PluginABIMacOSX_arm \
+ PluginABIMacOSX_arm64 \
PluginABIMacOSX_i386 \
PluginABISysV_x86_64 \
PluginAppleObjCRuntime \
@@ -48,9 +47,11 @@ LLDB_LIBS+= \
PluginDynamicLoaderMacOSXDYLD \
PluginDynamicLoaderPosixDYLD \
PluginDynamicLoaderStatic \
+ PluginJITLoaderGDB \
PluginObjectContainerBSDArchive \
PluginObjectContainerMachOArchive \
PluginObjectFileELF \
+ PluginObjectFileJIT \
PluginObjectFileMachO \
PluginObjectFilePECOFF \
PluginPlatformNetBSD \
@@ -89,8 +90,6 @@ LLVM_LIBS+= \
ipo \
IRReader \
AsmParser \
- BitReader \
- BitWriter \
MCDisassembler \
AArch64CodeGen \
AArch64TargetInfo \
@@ -114,11 +113,15 @@ LLVM_LIBS+= \
PowerPCCodeGen \
PowerPCAsmParser \
PowerPCTargetInfo \
+ PowerPCDisassembler \
PowerPCMCTargetDesc \
PowerPCAsmPrinter \
SparcCodeGen \
SparcTargetInfo \
+ SparcDisassembler \
SparcMCTargetDesc \
+ SparcAsmParser \
+ SparcAsmPrinter \
X86CodeGen \
X86TargetInfo \
X86MCTargetDesc \
@@ -126,7 +129,6 @@ LLVM_LIBS+= \
X86Disassembler \
X86AsmPrinter \
X86Utils \
- Object \
SelectionDAG \
AsmPrinter \
CodeGen \
@@ -138,16 +140,20 @@ LLVM_LIBS+= \
MCDisassembler \
MCParser \
MC \
+ Object \
+ BitReader \
+ BitWriter \
Linker \
TransformsUtils \
Analysis \
ipa \
IR \
+ ProfileData \
Option \
Support
-LDADD+= -ledit -lterminfo -lexecinfo
-DPADD+= ${LIBEDIT} ${LIBTERMINFO} ${LIBEXECINFO}
+LDADD+= -ledit -lterminfo -lexecinfo -lz
+DPADD+= ${LIBEDIT} ${LIBTERMINFO} ${LIBEXECINFO} ${LIBZ}
DBG=-g
.include "${.PARSEDIR}/../../link.mk"
diff --git a/external/bsd/llvm/bin/llvm-readobj/Makefile b/external/bsd/llvm/bin/llvm-readobj/Makefile
index 7843ba9acb2..e80e11a089c 100644
--- a/external/bsd/llvm/bin/llvm-readobj/Makefile
+++ b/external/bsd/llvm/bin/llvm-readobj/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2014/02/14 20:23:56 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2014/05/30 18:28:13 joerg Exp $
PROG_CXX= llvm-readobj
NOMAN= yes
@@ -14,7 +14,8 @@ SRCS= llvm-readobj.cpp \
Error.cpp \
MachODumper.cpp \
ObjDumper.cpp \
- StreamWriter.cpp
+ StreamWriter.cpp \
+ Win64EHDumper.cpp
LLVM_LIBS+= \
AArch64TargetInfo \
diff --git a/external/bsd/llvm/config/clang/Config/config.h b/external/bsd/llvm/config/clang/Config/config.h
index b087408b2a7..012afbb99e0 100644
--- a/external/bsd/llvm/config/clang/Config/config.h
+++ b/external/bsd/llvm/config/clang/Config/config.h
@@ -14,7 +14,7 @@
#define C_INCLUDE_DIRS "/usr/include/clang-3.5:/usr/include"
/* Linker version detected at compile time. */
-#define HOST_LINK_VERSION "2.23.52.20130913"
+#define HOST_LINK_VERSION "1"
/* Default <path> to all compiler invocations for --sysroot=<path>. */
#define DEFAULT_SYSROOT ""
diff --git a/external/bsd/llvm/config/llvm/Config/config.h.in b/external/bsd/llvm/config/llvm/Config/config.h.in
index 7e1e215fe0d..66f4cc6adfe 100644
--- a/external/bsd/llvm/config/llvm/Config/config.h.in
+++ b/external/bsd/llvm/config/llvm/Config/config.h.in
@@ -34,24 +34,6 @@
/* Directory where gcc is installed. */
#define GCC_INSTALL_PREFIX ""
-/* Define to 1 if you have the `argz_append' function. */
-/* #undef HAVE_ARGZ_APPEND */
-
-/* Define to 1 if you have the `argz_create_sep' function. */
-/* #undef HAVE_ARGZ_CREATE_SEP */
-
-/* Define to 1 if you have the <argz.h> header file. */
-/* #undef HAVE_ARGZ_H */
-
-/* Define to 1 if you have the `argz_insert' function. */
-/* #undef HAVE_ARGZ_INSERT */
-
-/* Define to 1 if you have the `argz_next' function. */
-/* #undef HAVE_ARGZ_NEXT */
-
-/* Define to 1 if you have the `argz_stringify' function. */
-/* #undef HAVE_ARGZ_STRINGIFY */
-
/* Define to 1 if you have the `backtrace' function. */
/* #undef HAVE_BACKTRACE */
@@ -61,9 +43,6 @@
/* Define if the neat program is available */
/* #undef HAVE_CIRCO */
-/* Define to 1 if you have the `closedir' function. */
-#define HAVE_CLOSEDIR 1
-
/* Define to 1 if you have the <CrashReporterClient.h> header file. */
/* #undef HAVE_CRASHREPORTERCLIENT_H */
@@ -93,12 +72,6 @@
*/
#define HAVE_DIRENT_H 1
-/* Define if you have the GNU dld library. */
-/* #undef HAVE_DLD */
-
-/* Define to 1 if you have the `dlerror' function. */
-#define HAVE_DLERROR 1
-
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
@@ -111,15 +84,9 @@
/* Define if the dotty program is available */
/* #undef HAVE_DOTTY */
-/* Define if you have the _dyld_func_lookup function. */
-/* #undef HAVE_DYLD */
-
/* Define to 1 if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
-/* Define to 1 if the system has the type `error_t'. */
-/* #undef HAVE_ERROR_T */
-
/* Define to 1 if you have the <execinfo.h> header file. */
#define HAVE_EXECINFO_H 1
@@ -206,9 +173,6 @@
/* Set to 1 if the isnan function is found in <math.h> */
#define HAVE_ISNAN_IN_MATH_H 1
-/* Define if you have the libdl library or equivalent. */
-#define HAVE_LIBDL 1
-
/* Define if libedit is available on this platform. */
#define HAVE_LIBEDIT 1
@@ -258,9 +222,6 @@
/* Define to 1 if you have the <mach/mach.h> header file. */
/* #undef HAVE_MACH_MACH_H */
-/* Define to 1 if you have the <mach-o/dyld.h> header file. */
-/* #undef HAVE_MACH_O_DYLD_H */
-
/* Define if mallinfo() is available on this platform. */
/* #undef HAVE_MALLINFO */
@@ -304,9 +265,6 @@
/* Define if the neat program is available */
/* #undef HAVE_NEATO */
-/* Define to 1 if you have the `opendir' function. */
-#define HAVE_OPENDIR 1
-
/* Define to 1 if you have the `posix_spawn' function. */
#define HAVE_POSIX_SPAWN 1
@@ -316,9 +274,6 @@
/* Define to 1 if you have the `pread' function. */
#define HAVE_PREAD 1
-/* Define if libtool can extract symbol lists from object files. */
-#define HAVE_PRELOADED_SYMBOLS 1
-
/* Define to have the %a format string */
#define HAVE_PRINTF_A 1
@@ -337,9 +292,6 @@
/* Define to 1 if srand48/lrand48/drand48 exist in <stdlib.h> */
#define HAVE_RAND48 1
-/* Define to 1 if you have the `readdir' function. */
-#define HAVE_READDIR 1
-
/* Define to 1 if you have the `realpath' function. */
#define HAVE_REALPATH 1
@@ -367,9 +319,6 @@
/* Define to 1 if you have the `setrlimit' function. */
#define HAVE_SETRLIMIT 1
-/* Define if you have the shl_load function. */
-/* #undef HAVE_SHL_LOAD */
-
/* Define to 1 if you have the `siglongjmp' function. */
/* #undef HAVE_SIGLONGJMP */
@@ -535,7 +484,7 @@
/* #undef HAVE____CHKSTK */
/* Linker version detected at compile time. */
-#define HOST_LINK_VERSION "2.23.52.20130913"
+#define HOST_LINK_VERSION "1"
/* Installation directory for binary executables */
#define LLVM_BINDIR "/usr/bin"
@@ -645,26 +594,16 @@
/* Minor version of the LLVM API */
#define LLVM_VERSION_MINOR 5
-/* Define if the OS needs help to load dependent libraries for dlopen(). */
-/* #undef LTDL_DLOPEN_DEPLIBS */
+/* Patch version of the LLVM API */
+#define LLVM_VERSION_PATCH 0
-/* Define to the sub-directory in which libtool stores uninstalled libraries.
- */
-#define LTDL_OBJDIR ".libs/"
-
-/* Define to the extension used for shared libraries, say, ".so". */
+/* The shared library extension */
#define LTDL_SHLIB_EXT ".so"
-/* Define to the system default library search path. */
-#define LTDL_SYSSEARCHPATH "/lib:/usr/lib"
-
/* Define if /dev/zero should be used when mapping RWX memory, or undefine if
its not necessary */
/* #undef NEED_DEV_ZERO_FOR_MMAP */
-/* Define if dlsym() requires a leading underscore in symbol names. */
-/* #undef NEED_USCORE */
-
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "http://llvm.org/bugs/"
@@ -672,13 +611,13 @@
#define PACKAGE_NAME "LLVM"
/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "LLVM 3.5svn"
+#define PACKAGE_STRING "LLVM 3.5.0svn"
/* 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.5svn"
+#define PACKAGE_VERSION "3.5.0svn"
/* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void
@@ -701,12 +640,6 @@
/* Type of 1st arg on ELM Callback */
/* #undef WIN32_ELMCB_PCSTR */
-/* Define to empty if `const' does not conform to ANSI C. */
-/* #undef const */
-
-/* Define to a type to use for `error_t' if it is not otherwise available. */
-#define error_t int
-
/* Define to `int' if <sys/types.h> does not define. */
/* #undef pid_t */
diff --git a/external/bsd/llvm/config/llvm/Support/DataTypes.h b/external/bsd/llvm/config/llvm/Support/DataTypes.h
index 546df67c2f6..27aec1504f3 100644
--- a/external/bsd/llvm/config/llvm/Support/DataTypes.h
+++ b/external/bsd/llvm/config/llvm/Support/DataTypes.h
@@ -38,6 +38,16 @@
#include <math.h>
#endif
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#else
+#error "Compiler must provide an implementation of stdint.h"
+#endif
+
#ifndef _MSC_VER
/* Note that this header's correct operation depends on __STDC_LIMIT_MACROS
@@ -56,14 +66,6 @@
/* Note that <inttypes.h> includes <stdint.h>, if this is a C99 system. */
#include <sys/types.h>
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
-
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif
-
#ifdef _AIX
#include "llvm/Support/AIXDataTypesFix.h"
#endif
@@ -78,8 +80,6 @@ typedef u_int64_t uint64_t;
#endif
#else /* _MSC_VER */
-/* Visual C++ doesn't provide standard integer headers, but it does provide
- built-in data types. */
#include <stdlib.h>
#include <stddef.h>
#include <sys/types.h>
@@ -88,94 +88,21 @@ typedef u_int64_t uint64_t;
#else
#include <math.h>
#endif
-typedef __int64 int64_t;
-typedef unsigned __int64 uint64_t;
-typedef signed int int32_t;
-typedef unsigned int uint32_t;
-typedef short int16_t;
-typedef unsigned short uint16_t;
-typedef signed char int8_t;
-typedef unsigned char uint8_t;
+
#if defined(_WIN64)
- typedef signed __int64 ssize_t;
+typedef signed __int64 ssize_t;
#else
- typedef signed int ssize_t;
-#endif
-
-#ifndef INT8_MAX
-# define INT8_MAX 127
-#endif
-#ifndef INT8_MIN
-# define INT8_MIN -128
-#endif
-#ifndef UINT8_MAX
-# define UINT8_MAX 255
-#endif
-#ifndef INT16_MAX
-# define INT16_MAX 32767
-#endif
-#ifndef INT16_MIN
-# define INT16_MIN -32768
-#endif
-#ifndef UINT16_MAX
-# define UINT16_MAX 65535
-#endif
-#ifndef INT32_MAX
-# define INT32_MAX 2147483647
-#endif
-#ifndef INT32_MIN
-/* MSC treats -2147483648 as -(2147483648U). */
-# define INT32_MIN (-INT32_MAX - 1)
-#endif
-#ifndef UINT32_MAX
-# define UINT32_MAX 4294967295U
-#endif
-/* Certain compatibility updates to VC++ introduce the `cstdint'
- * header, which defines the INT*_C macros. On default installs they
- * are absent. */
-#ifndef INT8_C
-# define INT8_C(C) C##i8
-#endif
-#ifndef UINT8_C
-# define UINT8_C(C) C##ui8
-#endif
-#ifndef INT16_C
-# define INT16_C(C) C##i16
-#endif
-#ifndef UINT16_C
-# define UINT16_C(C) C##ui16
-#endif
-#ifndef INT32_C
-# define INT32_C(C) C##i32
-#endif
-#ifndef UINT32_C
-# define UINT32_C(C) C##ui32
-#endif
-#ifndef INT64_C
-# define INT64_C(C) C##i64
-#endif
-#ifndef UINT64_C
-# define UINT64_C(C) C##ui64
-#endif
-
-#ifndef PRId64
-# define PRId64 "I64d"
-#endif
-#ifndef PRIi64
-# define PRIi64 "I64i"
-#endif
-#ifndef PRIo64
-# define PRIo64 "I64o"
-#endif
-#ifndef PRIu64
-# define PRIu64 "I64u"
-#endif
-#ifndef PRIx64
-# define PRIx64 "I64x"
-#endif
-#ifndef PRIX64
-# define PRIX64 "I64X"
-#endif
+typedef signed int ssize_t;
+#endif /* _WIN64 */
+
+#ifndef HAVE_INTTYPES_H
+#define PRId64 "I64d"
+#define PRIi64 "I64i"
+#define PRIo64 "I64o"
+#define PRIu64 "I64u"
+#define PRIx64 "I64x"
+#define PRIX64 "I64X"
+#endif /* HAVE_INTTYPES_H */
#endif /* _MSC_VER */
diff --git a/external/bsd/llvm/include/Makefile b/external/bsd/llvm/include/Makefile
index 318c3a339af..4b6dc5c5e90 100644
--- a/external/bsd/llvm/include/Makefile
+++ b/external/bsd/llvm/include/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2014/02/14 20:23:56 joerg Exp $
+# $NetBSD: Makefile,v 1.31 2014/05/30 18:28:13 joerg Exp $
.include <bsd.init.mk>
@@ -16,6 +16,7 @@ INCS= __wmmintrin_aes.h \
f16cintrin.h \
fmaintrin.h \
fma4intrin.h \
+ ia32intrin.h \
immintrin.h \
lzcntintrin.h \
mm3dnow.h \
@@ -71,7 +72,7 @@ CLANG_TABLEGEN_OUTPUT.Attr.td= \
clang/AST/AttrImpl.inc|-gen-clang-attr-impl \
clang/AST/AttrVisitor.inc|-gen-clang-attr-ast-visitor \
clang/Basic/AttrList.inc|-gen-clang-attr-list \
- clang/Lex/AttrSpellings.inc|-gen-clang-attr-spelling-list \
+ clang/Basic/AttrHasAttributeImpl.inc|-gen-clang-attr-has-attribute-impl \
clang/Parse/AttrParserStringSwitches.inc|-gen-clang-attr-parser-string-switches \
clang/Sema/AttrParsedAttrImpl.inc|-gen-clang-attr-parsed-attr-impl \
clang/Sema/AttrParsedAttrKinds.inc|-gen-clang-attr-parsed-attr-kinds \
diff --git a/external/bsd/llvm/lib/Makefile b/external/bsd/llvm/lib/Makefile
index 93e82b62a31..9e107dbbdc5 100644
--- a/external/bsd/llvm/lib/Makefile
+++ b/external/bsd/llvm/lib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2014/02/14 20:23:56 joerg Exp $
+# $NetBSD: Makefile,v 1.40 2014/05/30 18:28:13 joerg Exp $
.include <bsd.own.mk>
@@ -22,6 +22,7 @@ SUBDIR= \
libLLVMObjCARC \
libLLVMObject \
libLLVMOption \
+ libLLVMProfileData \
libLLVMScalarOpts \
libLLVMSelectionDAG \
libLLVMSupport \
@@ -90,10 +91,13 @@ SUBDIR+= \
libLLVMRuntimeDyld
.endif
+.if (${NO_LLVM_DEVELOPER:Uno} == "no" && ${LLVM_DEVELOPER:U} == "yes") || ${MKLLD} == "yes"
+SUBDIR+= \
+ libLLVMDebugInfo
+.endif
.if ${NO_LLVM_DEVELOPER:Uno} == "no" && ${LLVM_DEVELOPER:U} == "yes"
SUBDIR+= \
- libLLVMDebugInfo \
libLLVMCppBackend \
libLLVMCppBackendInfo \
libLLVMHello \
@@ -184,6 +188,7 @@ SUBDIR+= \
liblldbInterpreter \
liblldbLog \
liblldbPluginABIMacOSX_arm \
+ liblldbPluginABIMacOSX_arm64 \
liblldbPluginABIMacOSX_i386 \
liblldbPluginABISysV_x86_64 \
liblldbPluginAppleObjCRuntime \
@@ -193,9 +198,12 @@ SUBDIR+= \
liblldbPluginDynamicLoaderPosixDYLD \
liblldbPluginDynamicLoaderStatic \
liblldbPluginInstructionARM \
+ liblldbPluginInstructionARM64 \
+ liblldbPluginJITLoaderGDB \
liblldbPluginObjectContainerBSDArchive \
liblldbPluginObjectContainerMachOArchive \
liblldbPluginObjectFileELF \
+ liblldbPluginObjectFileJIT \
liblldbPluginObjectFileMachO \
liblldbPluginObjectFilePECOFF \
liblldbPluginPlatformNetBSD \
diff --git a/external/bsd/llvm/lib/libLLVMAArch64CodeGen/Makefile b/external/bsd/llvm/lib/libLLVMAArch64CodeGen/Makefile
index 2abc51342b8..4ac636caf45 100644
--- a/external/bsd/llvm/lib/libLLVMAArch64CodeGen/Makefile
+++ b/external/bsd/llvm/lib/libLLVMAArch64CodeGen/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2014/03/04 21:05:05 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2014/05/30 18:28:13 joerg Exp $
LIB= LLVMAArch64CodeGen
@@ -8,16 +8,26 @@ LIB= LLVMAArch64CodeGen
CPPFLAGS+= -I${LLVM_SRCDIR}/lib/Target/AArch64
-SRCS+= AArch64AsmPrinter.cpp \
- AArch64BranchFixupPass.cpp \
+SRCS+= AArch64AddressTypePromotion.cpp \
+ AArch64AdvSIMDScalarPass.cpp \
+ AArch64AsmPrinter.cpp \
+ AArch64BranchRelaxation.cpp \
+ AArch64CleanupLocalDynamicTLSPass.cpp \
+ AArch64CollectLOH.cpp \
+ AArch64ConditionalCompares.cpp \
+ AArch64DeadRegisterDefinitionsPass.cpp \
+ AArch64ExpandPseudoInsts.cpp \
+ AArch64FastISel.cpp \
AArch64FrameLowering.cpp \
+ AArch64InstrInfo.cpp \
AArch64ISelDAGToDAG.cpp \
AArch64ISelLowering.cpp \
- AArch64InstrInfo.cpp \
- AArch64MachineFunctionInfo.cpp \
+ AArch64LoadStoreOptimizer.cpp \
AArch64MCInstLower.cpp \
+ AArch64PromoteConstant.cpp \
AArch64RegisterInfo.cpp \
AArch64SelectionDAGInfo.cpp \
+ AArch64StorePairSuppress.cpp \
AArch64Subtarget.cpp \
AArch64TargetMachine.cpp \
AArch64TargetObjectFile.cpp \
@@ -27,14 +37,16 @@ TABLEGEN_SRC= AArch64.td
TABLEGEN_INCLUDES= -I${LLVM_SRCDIR}/lib/Target/AArch64
TABLEGEN_OUTPUT= \
AArch64GenAsmMatcher.inc|-gen-asm-matcher \
+ AArch64GenAsmWriter1.inc|-gen-asm-writer^-asmwriternum=1 \
AArch64GenAsmWriter.inc|-gen-asm-writer \
AArch64GenCallingConv.inc|-gen-callingconv \
+ AArch64GenDAGISel.inc|-gen-dag-isel \
AArch64GenDisassemblerTables.inc|-gen-disassembler \
+ AArch64GenFastISel.inc|-gen-fast-isel \
AArch64GenInstrInfo.inc|-gen-instr-info \
AArch64GenMCCodeEmitter.inc|-gen-emitter^-mc-emitter \
AArch64GenMCPseudoLowering.inc|-gen-pseudo-lowering \
AArch64GenRegisterInfo.inc|-gen-register-info \
- AArch64GenDAGISel.inc|-gen-dag-isel \
AArch64GenSubtargetInfo.inc|-gen-subtarget
.include "${.PARSEDIR}/../../tablegen.mk"
diff --git a/external/bsd/llvm/lib/libLLVMAArch64Disassembler/Makefile b/external/bsd/llvm/lib/libLLVMAArch64Disassembler/Makefile
index a2d29ba107b..378b420c61e 100644
--- a/external/bsd/llvm/lib/libLLVMAArch64Disassembler/Makefile
+++ b/external/bsd/llvm/lib/libLLVMAArch64Disassembler/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/02/04 15:00:34 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMAArch64Disassembler
@@ -9,7 +9,8 @@ CPPFLAGS+= -I${AARCH64_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/AArch64
.PATH: ${LLVM_SRCDIR}/lib/Target/AArch64/Disassembler
-SRCS+= AArch64Disassembler.cpp
+SRCS+= AArch64Disassembler.cpp \
+ AArch64ExternalSymbolizer.cpp
.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
diff --git a/external/bsd/llvm/lib/libLLVMAArch64MCTargetDesc/Makefile b/external/bsd/llvm/lib/libLLVMAArch64MCTargetDesc/Makefile
index ae36784d7d3..a4c6dd942b9 100644
--- a/external/bsd/llvm/lib/libLLVMAArch64MCTargetDesc/Makefile
+++ b/external/bsd/llvm/lib/libLLVMAArch64MCTargetDesc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/02/04 15:00:34 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMAArch64MCTargetDesc
@@ -15,7 +15,8 @@ SRCS+= AArch64AsmBackend.cpp \
AArch64MCAsmInfo.cpp \
AArch64MCCodeEmitter.cpp \
AArch64MCExpr.cpp \
- AArch64MCTargetDesc.cpp
+ AArch64MCTargetDesc.cpp \
+ AArch64MachObjectWriter.cpp
.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
diff --git a/external/bsd/llvm/lib/libLLVMARMCodeGen/Makefile b/external/bsd/llvm/lib/libLLVMARMCodeGen/Makefile
index a52540a8ab5..7901dfe7890 100644
--- a/external/bsd/llvm/lib/libLLVMARMCodeGen/Makefile
+++ b/external/bsd/llvm/lib/libLLVMARMCodeGen/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2013/03/24 13:02:17 joerg Exp $
+# $NetBSD: Makefile,v 1.13 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMARMCodeGen
@@ -23,6 +23,7 @@ SRCS+= ARMAsmPrinter.cpp \
ARMLoadStoreOptimizer.cpp \
ARMMCInstLower.cpp \
ARMMachineFunctionInfo.cpp \
+ ARMOptimizeBarriersPass.cpp \
ARMRegisterInfo.cpp \
ARMSelectionDAGInfo.cpp \
ARMSubtarget.cpp \
diff --git a/external/bsd/llvm/lib/libLLVMARMMCTargetDesc/Makefile b/external/bsd/llvm/lib/libLLVMARMMCTargetDesc/Makefile
index ee5a665ef7c..29ef58e9dd7 100644
--- a/external/bsd/llvm/lib/libLLVMARMMCTargetDesc/Makefile
+++ b/external/bsd/llvm/lib/libLLVMARMMCTargetDesc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2014/02/14 20:23:56 joerg Exp $
+# $NetBSD: Makefile,v 1.10 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMARMMCTargetDesc
@@ -19,7 +19,9 @@ SRCS+= ARMAsmBackend.cpp \
ARMTargetStreamer.cpp \
ARMMachORelocationInfo.cpp \
ARMMachObjectWriter.cpp \
- ARMUnwindOpAsm.cpp
+ ARMUnwindOpAsm.cpp \
+ ARMWinCOFFObjectWriter.cpp \
+ ARMWinCOFFStreamer.cpp
.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
diff --git a/external/bsd/llvm/lib/libLLVMAnalysis/Makefile b/external/bsd/llvm/lib/libLLVMAnalysis/Makefile
index dfccf3f623f..e7ba3617ef3 100644
--- a/external/bsd/llvm/lib/libLLVMAnalysis/Makefile
+++ b/external/bsd/llvm/lib/libLLVMAnalysis/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2014/02/14 20:23:56 joerg Exp $
+# $NetBSD: Makefile,v 1.18 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMAnalysis
@@ -14,9 +14,11 @@ SRCS+= AliasAnalysis.cpp \
Analysis.cpp \
BasicAliasAnalysis.cpp \
BlockFrequencyInfo.cpp \
+ BlockFrequencyInfoImpl.cpp \
BranchProbabilityInfo.cpp \
CFG.cpp \
CFGPrinter.cpp \
+ CGSCCPassManager.cpp \
CaptureTracking.cpp \
CodeMetrics.cpp \
ConstantFolding.cpp \
diff --git a/external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile b/external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile
index 0ce29f9126c..8369e9b50e9 100644
--- a/external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile
+++ b/external/bsd/llvm/lib/libLLVMAsmPrinter/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2014/02/14 20:23:56 joerg Exp $
+# $NetBSD: Makefile,v 1.11 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMAsmPrinter
@@ -7,15 +7,19 @@ LIB= LLVMAsmPrinter
.PATH: ${LLVM_SRCDIR}/lib/CodeGen/AsmPrinter
SRCS+= ARMException.cpp \
+ AddressPool.cpp \
AsmPrinter.cpp \
AsmPrinterDwarf.cpp \
AsmPrinterInlineAsm.cpp \
DIE.cpp \
DIEHash.cpp \
+ DbgValueHistoryCalculator.cpp \
DwarfAccelTable.cpp \
DwarfCFIException.cpp \
DwarfDebug.cpp \
DwarfException.cpp \
+ DwarfFile.cpp \
+ DwarfStringPool.cpp \
DwarfUnit.cpp \
ErlangGCPrinter.cpp \
OcamlGCPrinter.cpp \
diff --git a/external/bsd/llvm/lib/libLLVMCodeGen/Makefile b/external/bsd/llvm/lib/libLLVMCodeGen/Makefile
index dfecc08ad64..742e2e7a2f0 100644
--- a/external/bsd/llvm/lib/libLLVMCodeGen/Makefile
+++ b/external/bsd/llvm/lib/libLLVMCodeGen/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2014/03/04 21:05:05 joerg Exp $
+# $NetBSD: Makefile,v 1.28 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMCodeGen
@@ -9,6 +9,7 @@ LIB= LLVMCodeGen
SRCS+= AggressiveAntiDepBreaker.cpp \
AllocationOrder.cpp \
Analysis.cpp \
+ AtomicExpandLoadLinkedPass.cpp \
BasicTargetTransformInfo.cpp \
BranchFolding.cpp \
CalcSpillWeights.cpp \
diff --git a/external/bsd/llvm/lib/libLLVMIR/Makefile b/external/bsd/llvm/lib/libLLVMIR/Makefile
index 8d054032d50..d4eac748b9b 100644
--- a/external/bsd/llvm/lib/libLLVMIR/Makefile
+++ b/external/bsd/llvm/lib/libLLVMIR/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2014/01/15 22:21:34 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMIR
@@ -11,6 +11,7 @@ SRCS+= AsmWriter.cpp \
AutoUpgrade.cpp \
BasicBlock.cpp \
ConstantFold.cpp \
+ ConstantRange.cpp \
Constants.cpp \
Core.cpp \
DIBuilder.cpp \
@@ -34,6 +35,7 @@ SRCS+= AsmWriter.cpp \
LLVMContextImpl.cpp \
LeakDetector.cpp \
LegacyPassManager.cpp \
+ MDBuilder.cpp \
Mangler.cpp \
Metadata.cpp \
Module.cpp \
diff --git a/external/bsd/llvm/lib/libLLVMMC/Makefile b/external/bsd/llvm/lib/libLLVMMC/Makefile
index 4860ada2885..0638d2471a8 100644
--- a/external/bsd/llvm/lib/libLLVMMC/Makefile
+++ b/external/bsd/llvm/lib/libLLVMMC/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2014/03/04 21:05:06 joerg Exp $
+# $NetBSD: Makefile,v 1.16 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMMC
@@ -30,6 +30,7 @@ SRCS+= ELFObjectWriter.cpp \
MCInstrAnalysis.cpp \
MCInstPrinter.cpp \
MCLabel.cpp \
+ MCLinkerOptimizationHint.cpp \
MCModule.cpp \
MCMachOStreamer.cpp \
MCMachObjectTargetWriter.cpp \
@@ -50,6 +51,7 @@ SRCS+= ELFObjectWriter.cpp \
MCSubtargetInfo.cpp \
MCSymbolizer.cpp \
MCSymbol.cpp \
+ MCTargetOptions.cpp \
MCValue.cpp \
MCWin64EH.cpp \
MachObjectWriter.cpp \
diff --git a/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile b/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile
index a3b9503e7d2..22fc3a86612 100644
--- a/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile
+++ b/external/bsd/llvm/lib/libLLVMMipsCodeGen/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2014/03/04 21:05:06 joerg Exp $
+# $NetBSD: Makefile,v 1.23 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMMipsCodeGen
@@ -18,6 +18,7 @@ SRCS+= Mips16ISelDAGToDAG.cpp \
MipsCodeEmitter.cpp \
MipsConstantIslandPass.cpp \
MipsDelaySlotFiller.cpp \
+ MipsFastISel.cpp \
MipsFrameLowering.cpp \
MipsInstrInfo.cpp \
MipsISelDAGToDAG.cpp \
diff --git a/external/bsd/llvm/lib/libLLVMMipsMCTargetDesc/Makefile b/external/bsd/llvm/lib/libLLVMMipsMCTargetDesc/Makefile
index 66745a0dd7a..9dce835c24c 100644
--- a/external/bsd/llvm/lib/libLLVMMipsMCTargetDesc/Makefile
+++ b/external/bsd/llvm/lib/libLLVMMipsMCTargetDesc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2014/03/04 21:05:06 joerg Exp $
+# $NetBSD: Makefile,v 1.11 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMMipsMCTargetDesc
@@ -11,6 +11,7 @@ CPPFLAGS+= -I${MIPS_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/Mips
SRCS+= MipsAsmBackend.cpp \
MipsELFObjectWriter.cpp \
+ MipsELFStreamer.cpp \
MipsMCAsmInfo.cpp \
MipsMCCodeEmitter.cpp \
MipsMCExpr.cpp \
diff --git a/external/bsd/llvm/lib/libLLVMObject/Makefile b/external/bsd/llvm/lib/libLLVMObject/Makefile
index ff3780e1002..5ed883115b2 100644
--- a/external/bsd/llvm/lib/libLLVMObject/Makefile
+++ b/external/bsd/llvm/lib/libLLVMObject/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2014/03/04 21:05:06 joerg Exp $
+# $NetBSD: Makefile,v 1.10 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMObject
NOGCCERROR= yes
@@ -20,6 +20,7 @@ SRCS+= Archive.cpp \
MachOUniversal.cpp \
Object.cpp \
ObjectFile.cpp \
+ StringTableBuilder.cpp \
SymbolicFile.cpp \
YAML.cpp
diff --git a/external/bsd/llvm/lib/libLLVMProfileData/Makefile b/external/bsd/llvm/lib/libLLVMProfileData/Makefile
new file mode 100644
index 00000000000..313f7bd522f
--- /dev/null
+++ b/external/bsd/llvm/lib/libLLVMProfileData/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2014/05/30 18:28:14 joerg Exp $
+
+LIB= LLVMProfileData
+
+.include <bsd.init.mk>
+
+.PATH: ${LLVM_SRCDIR}/lib/ProfileData
+
+SRCS+= InstrProf.cpp \
+ InstrProfReader.cpp \
+ InstrProfWriter.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile b/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile
index c431f08b726..a12c243ea2e 100644
--- a/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile
+++ b/external/bsd/llvm/lib/libLLVMScalarOpts/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2014/03/04 21:05:06 joerg Exp $
+# $NetBSD: Makefile,v 1.17 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMScalarOpts
@@ -19,6 +19,7 @@ SRCS+= ADCE.cpp \
IndVarSimplify.cpp \
JumpThreading.cpp \
LICM.cpp \
+ LoadCombine.cpp \
LoopDeletion.cpp \
LoopIdiomRecognize.cpp \
LoopInstSimplify.cpp \
@@ -38,6 +39,7 @@ SRCS+= ADCE.cpp \
Scalar.cpp \
ScalarReplAggregates.cpp \
Scalarizer.cpp \
+ SeparateConstOffsetFromGEP.cpp \
SimplifyCFGPass.cpp \
Sink.cpp \
StructurizeCFG.cpp \
diff --git a/external/bsd/llvm/lib/libLLVMSupport/Makefile b/external/bsd/llvm/lib/libLLVMSupport/Makefile
index aae11aea758..efbfb6fb70e 100644
--- a/external/bsd/llvm/lib/libLLVMSupport/Makefile
+++ b/external/bsd/llvm/lib/libLLVMSupport/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2014/03/04 21:05:06 joerg Exp $
+# $NetBSD: Makefile,v 1.27 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMSupport
@@ -18,7 +18,6 @@ SRCS+= APFloat.cpp \
circular_raw_ostream.cpp \
CommandLine.cpp \
Compression.cpp \
- ConstantRange.cpp \
ConvertUTF.c \
ConvertUTFWrapper.cpp \
CrashRecoveryContext.cpp \
diff --git a/external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile b/external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile
index 79ffe8cfab9..dd62ff1b75b 100644
--- a/external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile
+++ b/external/bsd/llvm/lib/libLLVMTransformsUtils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2014/01/05 16:38:07 joerg Exp $
+# $NetBSD: Makefile,v 1.15 2014/05/30 18:28:14 joerg Exp $
LIB= LLVMTransformsUtils
@@ -7,6 +7,7 @@ LIB= LLVMTransformsUtils
.PATH: ${LLVM_SRCDIR}/lib/Transforms/Utils
SRCS+= ASanStackFrameLayout.cpp \
+ AddDiscriminators.cpp \
BasicBlockUtils.cpp \
BreakCriticalEdges.cpp \
BuildLibCalls.cpp \
@@ -15,6 +16,7 @@ SRCS+= ASanStackFrameLayout.cpp \
CloneModule.cpp \
CmpInstAnalysis.cpp \
CodeExtractor.cpp \
+ CtorUtils.cpp \
DemoteRegToStack.cpp \
FlattenCFG.cpp \
GlobalStatus.cpp \
diff --git a/external/bsd/llvm/lib/libLLVMX86AsmParser/Makefile b/external/bsd/llvm/lib/libLLVMX86AsmParser/Makefile
index 800768b781a..99574074aef 100644
--- a/external/bsd/llvm/lib/libLLVMX86AsmParser/Makefile
+++ b/external/bsd/llvm/lib/libLLVMX86AsmParser/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2013/01/23 15:03:00 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2014/05/30 18:28:15 joerg Exp $
LIB= LLVMX86AsmParser
@@ -9,7 +9,8 @@ CPPFLAGS+= -I${X86_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/X86
.PATH: ${LLVM_SRCDIR}/lib/Target/X86/AsmParser
-SRCS+= X86AsmParser.cpp
+SRCS+= X86AsmParser.cpp \
+ X86AsmInstrumentation.cpp
.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
diff --git a/external/bsd/llvm/lib/libLLVMX86CodeGen/Makefile b/external/bsd/llvm/lib/libLLVMX86CodeGen/Makefile
index 39291c9f882..faa81a3ff19 100644
--- a/external/bsd/llvm/lib/libLLVMX86CodeGen/Makefile
+++ b/external/bsd/llvm/lib/libLLVMX86CodeGen/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2013/04/28 00:41:01 joerg Exp $
+# $NetBSD: Makefile,v 1.11 2014/05/30 18:28:15 joerg Exp $
LIB= LLVMX86CodeGen
@@ -7,7 +7,6 @@ LIB= LLVMX86CodeGen
.PATH: ${LLVM_SRCDIR}/lib/Target/X86
SRCS+= X86AsmPrinter.cpp \
- X86COFFMachineModuleInfo.cpp \
X86CodeEmitter.cpp \
X86FastISel.cpp \
X86FixupLEAs.cpp \
diff --git a/external/bsd/llvm/lib/libLLVMX86Disassembler/Makefile b/external/bsd/llvm/lib/libLLVMX86Disassembler/Makefile
index 299d7542e73..1ffa62874c6 100644
--- a/external/bsd/llvm/lib/libLLVMX86Disassembler/Makefile
+++ b/external/bsd/llvm/lib/libLLVMX86Disassembler/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2013/09/03 14:54:00 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2014/05/30 18:28:15 joerg Exp $
LIB= LLVMX86Disassembler
@@ -10,7 +10,7 @@ CPPFLAGS+= -I${X86_OBJDIR}
.PATH: ${LLVM_SRCDIR}/lib/Target/X86/Disassembler
SRCS+= X86Disassembler.cpp \
- X86DisassemblerDecoder.c
+ X86DisassemblerDecoder.cpp
.for src in ${SRCS:M*.c}
CPPFLAGS.${src}+= -std=gnu99
diff --git a/external/bsd/llvm/lib/libLLVMX86MCTargetDesc/Makefile b/external/bsd/llvm/lib/libLLVMX86MCTargetDesc/Makefile
index 034c740c924..788631f9692 100644
--- a/external/bsd/llvm/lib/libLLVMX86MCTargetDesc/Makefile
+++ b/external/bsd/llvm/lib/libLLVMX86MCTargetDesc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2013/05/28 17:37:35 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2014/05/30 18:28:15 joerg Exp $
LIB= LLVMX86MCTargetDesc
@@ -17,7 +17,8 @@ SRCS+= X86AsmBackend.cpp \
X86MachORelocationInfo.cpp \
X86MachObjectWriter.cpp \
X86ELFRelocationInfo.cpp \
- X86WinCOFFObjectWriter.cpp
+ X86WinCOFFObjectWriter.cpp \
+ X86WinCOFFStreamer.cpp
.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
diff --git a/external/bsd/llvm/lib/libclangAnalysis/Makefile b/external/bsd/llvm/lib/libclangAnalysis/Makefile
index 9feb1574823..c2f59d62bcc 100644
--- a/external/bsd/llvm/lib/libclangAnalysis/Makefile
+++ b/external/bsd/llvm/lib/libclangAnalysis/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2013/09/02 14:34:56 joerg Exp $
+# $NetBSD: Makefile,v 1.11 2014/05/30 18:28:15 joerg Exp $
LIB= clangAnalysis
@@ -25,6 +25,9 @@ SRCS+= AnalysisDeclContext.cpp \
ReachableCode.cpp \
ScanfFormatString.cpp \
ThreadSafety.cpp \
+ ThreadSafetyCommon.cpp \
+ ThreadSafetyLogical.cpp \
+ ThreadSafetyTIL.cpp \
UninitializedValues.cpp
.if defined(HOSTLIB)
diff --git a/external/bsd/llvm/lib/libclangBasic/Makefile b/external/bsd/llvm/lib/libclangBasic/Makefile
index 7494aacf560..180c9abe778 100644
--- a/external/bsd/llvm/lib/libclangBasic/Makefile
+++ b/external/bsd/llvm/lib/libclangBasic/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2014/03/04 21:05:06 joerg Exp $
+# $NetBSD: Makefile,v 1.12 2014/05/30 18:28:15 joerg Exp $
LIB= clangBasic
@@ -6,7 +6,8 @@ LIB= clangBasic
.PATH: ${CLANG_SRCDIR}/lib/Basic
-SRCS+= Builtins.cpp \
+SRCS+= Attributes.cpp \
+ Builtins.cpp \
CharInfo.cpp \
Diagnostic.cpp \
DiagnosticIDs.cpp \
@@ -25,7 +26,8 @@ SRCS+= Builtins.cpp \
TokenKinds.cpp \
Version.cpp \
VersionTuple.cpp \
- VirtualFileSystem.cpp
+ VirtualFileSystem.cpp \
+ Warnings.cpp
CPPFLAGS.Version.cpp= -DSVN_REVISION=\"${CLANG_REVISION}\" \
-DLLVM_REVISION=\"${LLVM_REVISION}\"
diff --git a/external/bsd/llvm/lib/libclangCodeGen/Makefile b/external/bsd/llvm/lib/libclangCodeGen/Makefile
index dae2ecd2913..6c133d1ec15 100644
--- a/external/bsd/llvm/lib/libclangCodeGen/Makefile
+++ b/external/bsd/llvm/lib/libclangCodeGen/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2014/01/15 22:21:35 joerg Exp $
+# $NetBSD: Makefile,v 1.10 2014/05/30 18:28:15 joerg Exp $
LIB= clangCodeGen
@@ -27,14 +27,17 @@ SRCS+= BackendUtil.cpp \
CGExprConstant.cpp \
CGExprCXX.cpp \
CGExprScalar.cpp \
+ CGLoopInfo.cpp \
CGObjC.cpp \
CGObjCGNU.cpp \
CGObjCMac.cpp \
CGObjCRuntime.cpp \
CGOpenCLRuntime.cpp \
+ CGOpenMPRuntime.cpp \
CGRecordLayoutBuilder.cpp \
CGRTTI.cpp \
CGStmt.cpp \
+ CGStmtOpenMP.cpp \
CGVTables.cpp \
CGVTT.cpp \
CodeGenABITypes.cpp \
@@ -46,6 +49,7 @@ SRCS+= BackendUtil.cpp \
CodeGenTypes.cpp \
ItaniumCXXABI.cpp \
MicrosoftCXXABI.cpp \
+ MicrosoftRTTI.cpp \
ModuleBuilder.cpp \
TargetInfo.cpp
diff --git a/external/bsd/llvm/lib/libclangFrontend/Makefile b/external/bsd/llvm/lib/libclangFrontend/Makefile
index 55c251b2a3b..3e80b509494 100644
--- a/external/bsd/llvm/lib/libclangFrontend/Makefile
+++ b/external/bsd/llvm/lib/libclangFrontend/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2012/02/28 17:09:31 joerg Exp $
+# $NetBSD: Makefile,v 1.12 2014/05/30 18:28:15 joerg Exp $
LIB= clangFrontend
@@ -33,8 +33,7 @@ SRCS+= ASTConsumers.cpp \
TextDiagnostic.cpp \
TextDiagnosticBuffer.cpp \
TextDiagnosticPrinter.cpp \
- VerifyDiagnosticConsumer.cpp \
- Warnings.cpp
+ VerifyDiagnosticConsumer.cpp
.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
diff --git a/external/bsd/llvm/lib/liblldDriver/Makefile b/external/bsd/llvm/lib/liblldDriver/Makefile
index 67c1c4b476b..1a3faecfba3 100644
--- a/external/bsd/llvm/lib/liblldDriver/Makefile
+++ b/external/bsd/llvm/lib/liblldDriver/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2014/01/05 16:38:07 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2014/05/30 18:28:15 joerg Exp $
LIB= lldDriver
@@ -13,7 +13,8 @@ SRCS+= CoreDriver.cpp \
GnuLdInputGraph.cpp \
UniversalDriver.cpp \
WinLinkDriver.cpp \
- WinLinkInputGraph.cpp
+ WinLinkInputGraph.cpp \
+ WinLinkModuleDef.cpp
TABLEGEN_SRC= CoreOptions.td DarwinLdOptions.td GnuLdOptions.td \
UniversalDriverOptions.td WinLinkOptions.td
diff --git a/external/bsd/llvm/lib/liblldReaderWriterELFMips/Makefile b/external/bsd/llvm/lib/liblldReaderWriterELFMips/Makefile
index afc5a0f6b13..60e17dbcdc7 100644
--- a/external/bsd/llvm/lib/liblldReaderWriterELFMips/Makefile
+++ b/external/bsd/llvm/lib/liblldReaderWriterELFMips/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2014/01/05 16:38:07 joerg Exp $
+ # $NetBSD: Makefile,v 1.2 2014/05/30 18:28:15 joerg Exp $
LIB= lldReaderWriterELFMips
@@ -10,6 +10,7 @@ CPPFLAGS+= -I${LLD_SRCDIR}/lib/ReaderWriter/ELF
SRCS+= MipsLinkingContext.cpp \
MipsRelocationHandler.cpp \
+ MipsRelocationPass.cpp \
MipsTargetHandler.cpp
.if defined(HOSTLIB)
diff --git a/external/bsd/llvm/lib/liblldReaderWriterMachO/Makefile b/external/bsd/llvm/lib/liblldReaderWriterMachO/Makefile
index 413b92041e4..3b8146b0f52 100644
--- a/external/bsd/llvm/lib/liblldReaderWriterMachO/Makefile
+++ b/external/bsd/llvm/lib/liblldReaderWriterMachO/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2014/01/05 16:38:07 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2014/05/30 18:28:15 joerg Exp $
LIB= lldReaderWriterMachO
@@ -10,6 +10,7 @@ SRCS+= MachOLinkingContext.cpp \
MachONormalizedFileBinaryReader.cpp \
MachONormalizedFileBinaryWriter.cpp \
MachONormalizedFileFromAtoms.cpp \
+ MachONormalizedFileToAtoms.cpp \
MachONormalizedFileYAML.cpp \
ReferenceKinds.cpp \
WriterMachO.cpp
diff --git a/external/bsd/llvm/lib/liblldbAPI/Makefile b/external/bsd/llvm/lib/liblldbAPI/Makefile
index dff25dfd674..6c107f1a7c7 100644
--- a/external/bsd/llvm/lib/liblldbAPI/Makefile
+++ b/external/bsd/llvm/lib/liblldbAPI/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/09/29 12:12:00 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2014/05/30 18:28:15 joerg Exp $
LIB= lldbAPI
@@ -26,7 +26,6 @@ SRCS+= SBAddress.cpp \
SBFrame.cpp \
SBFunction.cpp \
SBHostOS.cpp \
- SBInputReader.cpp \
SBInstruction.cpp \
SBInstructionList.cpp \
SBLineEntry.cpp \
diff --git a/external/bsd/llvm/lib/liblldbCommands/Makefile b/external/bsd/llvm/lib/liblldbCommands/Makefile
index 3859660bb63..039c7a25e40 100644
--- a/external/bsd/llvm/lib/liblldbCommands/Makefile
+++ b/external/bsd/llvm/lib/liblldbCommands/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/09/29 12:12:00 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2014/05/30 18:28:15 joerg Exp $
LIB= lldbCommands
@@ -6,6 +6,8 @@ LIB= lldbCommands
.PATH: ${LLDB_SRCDIR}/source/Commands
+CPPFLAGS.CommandObjectGUI.cpp+= -DLLDB_DISABLE_CURSES
+
SRCS+= CommandCompletions.cpp \
CommandObjectApropos.cpp \
CommandObjectArgs.cpp \
@@ -15,6 +17,7 @@ SRCS+= CommandCompletions.cpp \
CommandObjectDisassemble.cpp \
CommandObjectExpression.cpp \
CommandObjectFrame.cpp \
+ CommandObjectGUI.cpp \
CommandObjectHelp.cpp \
CommandObjectLog.cpp \
CommandObjectMemory.cpp \
diff --git a/external/bsd/llvm/lib/liblldbCore/Makefile b/external/bsd/llvm/lib/liblldbCore/Makefile
index cc46093beb3..772ee1bac5a 100644
--- a/external/bsd/llvm/lib/liblldbCore/Makefile
+++ b/external/bsd/llvm/lib/liblldbCore/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/09/29 12:12:00 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2014/05/30 18:28:15 joerg Exp $
LIB= lldbCore
@@ -6,6 +6,8 @@ LIB= lldbCore
.PATH: ${LLDB_SRCDIR}/source/Core
+CPPFLAGS.IOHandler.cpp+= -DLLDB_DISABLE_CURSES
+
SRCS+= Address.cpp \
AddressRange.cpp \
AddressResolver.cpp \
@@ -33,9 +35,7 @@ SRCS+= Address.cpp \
FileLineResolver.cpp \
FileSpecList.cpp \
History.cpp \
- InputReader.cpp \
- InputReaderEZ.cpp \
- InputReaderStack.cpp \
+ IOHandler.cpp \
Language.cpp \
Listener.cpp \
Log.cpp \
diff --git a/external/bsd/llvm/lib/liblldbHostCommon/Makefile b/external/bsd/llvm/lib/liblldbHostCommon/Makefile
index 1e15a981923..113ef876780 100644
--- a/external/bsd/llvm/lib/liblldbHostCommon/Makefile
+++ b/external/bsd/llvm/lib/liblldbHostCommon/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/09/29 12:12:00 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2014/05/30 18:28:15 joerg Exp $
LIB= lldbHostCommon
@@ -8,6 +8,7 @@ LIB= lldbHostCommon
SRCS+= Condition.cpp \
DynamicLibrary.cpp \
+ Editline.cpp \
File.cpp \
FileSpec.cpp \
Host.cpp \
diff --git a/external/bsd/llvm/lib/liblldbPluginABIMacOSX_arm64/Makefile b/external/bsd/llvm/lib/liblldbPluginABIMacOSX_arm64/Makefile
new file mode 100644
index 00000000000..e0780d3a077
--- /dev/null
+++ b/external/bsd/llvm/lib/liblldbPluginABIMacOSX_arm64/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2014/05/30 18:28:15 joerg Exp $
+
+LIB= lldbPluginABIMacOSX_arm64
+
+.include <bsd.init.mk>
+
+.PATH: ${LLDB_SRCDIR}/source/Plugins/ABI/MacOSX-arm64
+
+SRCS+= ABIMacOSX_arm64.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/bsd/llvm/lib/liblldbPluginInstructionARM64/Makefile b/external/bsd/llvm/lib/liblldbPluginInstructionARM64/Makefile
new file mode 100644
index 00000000000..5773defec51
--- /dev/null
+++ b/external/bsd/llvm/lib/liblldbPluginInstructionARM64/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2014/05/30 18:28:15 joerg Exp $
+
+LIB= lldbPluginInstructionARM64
+
+.include <bsd.init.mk>
+
+.PATH: ${LLDB_SRCDIR}/source/Plugins/Instruction/ARM64
+
+SRCS+= EmulateInstructionARM64.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/bsd/llvm/lib/liblldbPluginJITLoaderGDB/Makefile b/external/bsd/llvm/lib/liblldbPluginJITLoaderGDB/Makefile
new file mode 100644
index 00000000000..4391007335f
--- /dev/null
+++ b/external/bsd/llvm/lib/liblldbPluginJITLoaderGDB/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2014/05/30 18:28:16 joerg Exp $
+
+LIB= lldbPluginJITLoaderGDB
+
+.include <bsd.init.mk>
+
+.PATH: ${LLDB_SRCDIR}/source/Plugins/JITLoader/GDB
+
+SRCS+= JITLoaderGDB.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/bsd/llvm/lib/liblldbPluginObjectFileJIT/Makefile b/external/bsd/llvm/lib/liblldbPluginObjectFileJIT/Makefile
new file mode 100644
index 00000000000..21a3a7d6eef
--- /dev/null
+++ b/external/bsd/llvm/lib/liblldbPluginObjectFileJIT/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2014/05/30 18:28:16 joerg Exp $
+
+LIB= lldbPluginObjectFileJIT
+
+.include <bsd.init.mk>
+
+.PATH: ${LLDB_SRCDIR}/source/Plugins/ObjectFile/JIT
+
+SRCS+= ObjectFileJIT.cpp
+
+.if defined(HOSTLIB)
+.include <bsd.hostlib.mk>
+.else
+.include <bsd.lib.mk>
+.endif
diff --git a/external/bsd/llvm/lib/liblldbPluginProcessElfCore/Makefile b/external/bsd/llvm/lib/liblldbPluginProcessElfCore/Makefile
index 0a888f774b0..38231be2788 100644
--- a/external/bsd/llvm/lib/liblldbPluginProcessElfCore/Makefile
+++ b/external/bsd/llvm/lib/liblldbPluginProcessElfCore/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2013/10/14 01:37:40 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2014/05/30 18:28:16 joerg Exp $
LIB= lldbPluginProcessElfCore
@@ -6,7 +6,9 @@ LIB= lldbPluginProcessElfCore
.PATH: ${LLDB_SRCDIR}/source/Plugins/Process/elf-core
-CPPFLAGS.RegisterContextPOSIXCore_mips64.cpp+= -I${LLDB_SRCDIR}/source/Plugins/Process/POSIX
+CPPFLAGS.RegisterContextPOSIXCore_mips64.cpp+= -I${LLDB_SRCDIR}/source/Plugins/Process/Utility
+CPPFLAGS.RegisterContextPOSIXCore_x86_64.cpp+= -I${LLDB_SRCDIR}/source/Plugins/Process/Utility
+CPPFLAGS.ThreadElfCore.cpp+= -I${LLDB_SRCDIR}/source/Plugins/Process/Utility
SRCS+= ProcessElfCore.cpp \
RegisterContextPOSIXCore_mips64.cpp \
diff --git a/external/bsd/llvm/lib/liblldbPluginProcessNetBSD/Makefile b/external/bsd/llvm/lib/liblldbPluginProcessNetBSD/Makefile
index 5a20dd7d940..fab48af964e 100644
--- a/external/bsd/llvm/lib/liblldbPluginProcessNetBSD/Makefile
+++ b/external/bsd/llvm/lib/liblldbPluginProcessNetBSD/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/09/29 12:12:02 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2014/05/30 18:28:16 joerg Exp $
LIB= lldbPluginProcessNetBSD
@@ -6,6 +6,9 @@ LIB= lldbPluginProcessNetBSD
.PATH: ${LLDB_SRCDIR}/source/Plugins/Process/FreeBSD
+CPPFLAGS.ProcessFreeBSD.cpp+= -I${LLDB_SRCDIR}/source/Plugins/Process/Utility
+CPPFLAGS.ProcessMonitor.cpp+= -I${LLDB_SRCDIR}/source/Plugins/Process/Utility
+
SRCS+= ProcessFreeBSD.cpp \
ProcessMonitor.cpp
diff --git a/external/bsd/llvm/lib/liblldbPluginProcessPOSIX/Makefile b/external/bsd/llvm/lib/liblldbPluginProcessPOSIX/Makefile
index ef44f87daae..7667d9f56fd 100644
--- a/external/bsd/llvm/lib/liblldbPluginProcessPOSIX/Makefile
+++ b/external/bsd/llvm/lib/liblldbPluginProcessPOSIX/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2013/10/14 01:37:40 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2014/05/30 18:28:16 joerg Exp $
LIB= lldbPluginProcessPOSIX
@@ -6,11 +6,12 @@ LIB= lldbPluginProcessPOSIX
.PATH: ${LLDB_SRCDIR}/source/Plugins/Process/POSIX
-CPPFLAGS.POSIXThread.cpp= -I${LLDB_SRCDIR}/source/Plugins/Process/FreeBSD
-CPPFLAGS.ProcessPOSIX.cpp= -I${LLDB_SRCDIR}/source/Plugins/Process/FreeBSD
-CPPFLAGS.RegisterContextPOSIX_x86.cpp= -I${LLDB_SRCDIR}/source/Plugins/Process/FreeBSD
-CPPFLAGS.RegisterContextPOSIXProcessMonitor_x86.cpp= -I${LLDB_SRCDIR}/source/Plugins/Process/FreeBSD
-CPPFLAGS.RegisterContextPOSIXProcessMonitor_mips64.cpp= -I${LLDB_SRCDIR}/source/Plugins/Process/FreeBSD
+CPPFLAGS.POSIXStopInfo.cpp= -I${LLDB_SRCDIR}/source/Plugins/Process/Utility
+CPPFLAGS.POSIXThread.cpp= -I${LLDB_SRCDIR}/source/Plugins/Process/Utility -I${LLDB_SRCDIR}/source/Plugins/Process/FreeBSD
+CPPFLAGS.ProcessPOSIX.cpp= -I${LLDB_SRCDIR}/source/Plugins/Process/Utility -I${LLDB_SRCDIR}/source/Plugins/Process/FreeBSD
+CPPFLAGS.RegisterContextPOSIX_x86.cpp= -I${LLDB_SRCDIR}/source/Plugins/Process/Utility
+CPPFLAGS.RegisterContextPOSIXProcessMonitor_x86.cpp= -I${LLDB_SRCDIR}/source/Plugins/Process/Utility -I${LLDB_SRCDIR}/source/Plugins/Process/FreeBSD
+CPPFLAGS.RegisterContextPOSIXProcessMonitor_mips64.cpp= -I${LLDB_SRCDIR}/source/Plugins/Process/Utility -I${LLDB_SRCDIR}/source/Plugins/Process/FreeBSD
CPPFLAGS.POSIXThread.cpp+= -I${LLDB_SRCDIR}/source/Plugins/Process/Utility
SRCS+= POSIXStopInfo.cpp \
@@ -18,13 +19,6 @@ SRCS+= POSIXStopInfo.cpp \
ProcessMessage.cpp \
ProcessPOSIX.cpp \
ProcessPOSIXLog.cpp \
- RegisterContextPOSIX_mips64.cpp \
- RegisterContextPOSIX_x86.cpp \
- RegisterContextFreeBSD_i386.cpp \
- RegisterContextFreeBSD_mips64.cpp \
- RegisterContextFreeBSD_x86_64.cpp \
- RegisterContextLinux_i386.cpp \
- RegisterContextLinux_x86_64.cpp \
RegisterContextPOSIXProcessMonitor_mips64.cpp \
RegisterContextPOSIXProcessMonitor_x86.cpp
diff --git a/external/bsd/llvm/lib/liblldbPluginProcessUtility/Makefile b/external/bsd/llvm/lib/liblldbPluginProcessUtility/Makefile
index d36827dbe9d..f3ff478f3b6 100644
--- a/external/bsd/llvm/lib/liblldbPluginProcessUtility/Makefile
+++ b/external/bsd/llvm/lib/liblldbPluginProcessUtility/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2013/11/11 23:51:36 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2014/05/30 18:28:16 joerg Exp $
LIB= lldbPluginProcessUtility
@@ -7,13 +7,20 @@ LIB= lldbPluginProcessUtility
.PATH: ${LLDB_SRCDIR}/source/Plugins/Process/Utility
SRCS+= DynamicRegisterInfo.cpp \
+ FreeBSDSignals.cpp \
HistoryThread.cpp \
HistoryUnwind.cpp \
InferiorCallPOSIX.cpp \
RegisterContextDarwin_arm.cpp \
+ RegisterContextDarwin_arm64.cpp \
RegisterContextDarwin_i386.cpp \
RegisterContextDarwin_x86_64.cpp \
RegisterContextDummy.cpp \
+ RegisterContextFreeBSD_i386.cpp \
+ RegisterContextFreeBSD_mips64.cpp \
+ RegisterContextFreeBSD_x86_64.cpp \
+ RegisterContextLinux_i386.cpp \
+ RegisterContextLinux_x86_64.cpp \
RegisterContextHistory.cpp \
RegisterContextLLDB.cpp \
RegisterContextMach_arm.cpp \
@@ -21,6 +28,8 @@ SRCS+= DynamicRegisterInfo.cpp \
RegisterContextMach_x86_64.cpp \
RegisterContextMacOSXFrameBackchain.cpp \
RegisterContextMemory.cpp \
+ RegisterContextPOSIX_mips64.cpp \
+ RegisterContextPOSIX_x86.cpp \
RegisterContextThreadMemory.cpp \
StopInfoMachException.cpp \
ThreadMemory.cpp \
diff --git a/external/bsd/llvm/lib/liblldbTarget/Makefile b/external/bsd/llvm/lib/liblldbTarget/Makefile
index 6f4b18d89bd..db7477c7318 100644
--- a/external/bsd/llvm/lib/liblldbTarget/Makefile
+++ b/external/bsd/llvm/lib/liblldbTarget/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2013/11/11 23:51:36 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2014/05/30 18:28:16 joerg Exp $
LIB= lldbTarget
@@ -11,6 +11,8 @@ CPPFLAGS.Thread.cpp+= -I${LLDB_SRCDIR}/source/Plugins/Process/Utility
SRCS+= ABI.cpp \
CPPLanguageRuntime.cpp \
ExecutionContext.cpp \
+ JITLoader.cpp \
+ JITLoaderList.cpp \
LanguageRuntime.cpp \
Memory.cpp \
ObjCLanguageRuntime.cpp \
@@ -18,7 +20,11 @@ SRCS+= ABI.cpp \
PathMappingList.cpp \
Platform.cpp \
Process.cpp \
+ Queue.cpp \
+ QueueItem.cpp \
+ QueueList.cpp \
RegisterContext.cpp \
+ SectionLoadHistory.cpp \
SectionLoadList.cpp \
StackFrame.cpp \
StackFrameList.cpp \
diff --git a/external/bsd/llvm/lib/liblldbUtility/Makefile b/external/bsd/llvm/lib/liblldbUtility/Makefile
index b34625cedfc..7ea39e90db8 100644
--- a/external/bsd/llvm/lib/liblldbUtility/Makefile
+++ b/external/bsd/llvm/lib/liblldbUtility/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/09/29 12:12:02 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2014/05/30 18:28:16 joerg Exp $
LIB= lldbUtility
@@ -7,6 +7,7 @@ LIB= lldbUtility
.PATH: ${LLDB_SRCDIR}/source/Utility
SRCS+= ARM_DWARF_Registers.cpp \
+ ARM64_DWARF_Registers.cpp \
KQueue.cpp \
PseudoTerminal.cpp \
Range.cpp \
diff --git a/tools/llvm-lib/libLLVMDebugInfo/Makefile b/tools/llvm-lib/libLLVMDebugInfo/Makefile
new file mode 100644
index 00000000000..3b5b2a74288
--- /dev/null
+++ b/tools/llvm-lib/libLLVMDebugInfo/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2014/05/30 18:28:16 joerg Exp $
+
+.include <bsd.init.mk>
diff --git a/tools/llvm-lib/libLLVMProfileData/Makefile b/tools/llvm-lib/libLLVMProfileData/Makefile
new file mode 100644
index 00000000000..3b5b2a74288
--- /dev/null
+++ b/tools/llvm-lib/libLLVMProfileData/Makefile
@@ -0,0 +1,3 @@
+# $NetBSD: Makefile,v 1.1 2014/05/30 18:28:16 joerg Exp $
+
+.include <bsd.init.mk>