summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/clang/Makefile18
-rw-r--r--lib/clang/clang.build.mk66
-rw-r--r--lib/clang/include/ARMGenDecoderTables.inc2
-rw-r--r--lib/clang/include/ARMGenEDInfo.inc2
-rw-r--r--lib/clang/include/ARMGenMCCodeEmitter.inc2
-rw-r--r--lib/clang/include/Checkers.inc2
-rw-r--r--lib/clang/include/Makefile2
-rw-r--r--lib/clang/include/PPCGenMCCodeEmitter.inc2
-rw-r--r--lib/clang/include/clang/Basic/Version.inc8
-rw-r--r--lib/clang/include/clang/Lex/AttrSpellings.inc2
-rw-r--r--lib/clang/include/llvm/ADT/iterator.h78
-rw-r--r--lib/clang/include/llvm/Config/AsmPrinters.def2
-rw-r--r--lib/clang/include/llvm/Config/Disassemblers.def1
-rw-r--r--lib/clang/include/llvm/Config/Targets.def2
-rw-r--r--lib/clang/include/llvm/Config/config.h34
-rw-r--r--lib/clang/include/llvm/Config/llvm-config.h12
-rw-r--r--lib/clang/include/llvm/Support/DataTypes.h (renamed from lib/clang/include/llvm/System/DataTypes.h)6
-rw-r--r--lib/clang/libclanganalysis/Makefile4
-rw-r--r--lib/clang/libclangast/Makefile6
-rw-r--r--lib/clang/libclangbasic/Makefile2
-rw-r--r--lib/clang/libclangcodegen/Makefile4
-rw-r--r--lib/clang/libclangfrontend/Makefile2
-rw-r--r--lib/clang/libclanglex/Makefile3
-rw-r--r--lib/clang/libclangsema/Makefile1
-rw-r--r--lib/clang/libclangstaticanalyzercheckers/Makefile (renamed from lib/clang/libclangchecker/Makefile)54
-rw-r--r--lib/clang/libclangstaticanalyzercore/Makefile45
-rw-r--r--lib/clang/libclangstaticanalyzerfrontend/Makefile18
-rw-r--r--lib/clang/libllvmanalysis/Makefile9
-rw-r--r--lib/clang/libllvmarmcodegen/Makefile13
-rw-r--r--lib/clang/libllvmarmdisassembler/Makefile16
-rw-r--r--lib/clang/libllvmarminstprinter/Makefile (renamed from lib/clang/libllvmarmasmprinter/Makefile)4
-rw-r--r--lib/clang/libllvmasmprinter/Makefile2
-rw-r--r--lib/clang/libllvmcodegen/Makefile9
-rw-r--r--lib/clang/libllvmcore/Makefile1
-rw-r--r--lib/clang/libllvmipo/Makefile1
-rw-r--r--lib/clang/libllvmmc/Makefile4
-rw-r--r--lib/clang/libllvmmcparser/Makefile1
-rw-r--r--lib/clang/libllvmmipsasmprinter/Makefile14
-rw-r--r--lib/clang/libllvmmipscodegen/Makefile5
-rw-r--r--lib/clang/libllvmpowerpccodegen/Makefile8
-rw-r--r--lib/clang/libllvmpowerpcinstprinter/Makefile (renamed from lib/clang/libllvmpowerpcasmprinter/Makefile)6
-rw-r--r--lib/clang/libllvmscalaropts/Makefile3
-rw-r--r--lib/clang/libllvmsupport/Makefile23
-rw-r--r--lib/clang/libllvmsystem/Makefile24
-rw-r--r--lib/clang/libllvmtarget/Makefile4
-rw-r--r--lib/clang/libllvmx86codegen/Makefile2
-rw-r--r--lib/clang/libllvmx86instprinter/Makefile (renamed from lib/clang/libllvmx86asmprinter/Makefile)4
-rw-r--r--lib/clang/libllvmx86utils/Makefile9
-rw-r--r--lib/libz/Makefile4
49 files changed, 303 insertions, 243 deletions
diff --git a/lib/clang/Makefile b/lib/clang/Makefile
index bd6ece6..c37e089 100644
--- a/lib/clang/Makefile
+++ b/lib/clang/Makefile
@@ -4,17 +4,19 @@
SUBDIR= libclanganalysis \
libclangast \
libclangbasic \
- libclangchecker \
libclangcodegen \
libclangdriver \
- libclangindex \
libclangfrontend \
libclangfrontendtool \
+ libclangindex \
libclanglex \
libclangparse \
libclangrewrite \
libclangsema \
libclangserialization \
+ libclangstaticanalyzercore \
+ libclangstaticanalyzerfrontend \
+ libclangstaticanalyzercheckers \
\
libllvmanalysis \
libllvmasmparser \
@@ -31,25 +33,25 @@ SUBDIR= libclanganalysis \
libllvmscalaropts \
libllvmselectiondag \
libllvmsupport \
- libllvmsystem \
libllvmtarget \
libllvmtransformutils \
\
libllvmarmasmparser \
- libllvmarmasmprinter \
+ libllvmarminstprinter \
libllvmarmcodegen \
+ libllvmarmdisassembler \
libllvmarminfo \
- libllvmmipsasmprinter \
libllvmmipscodegen \
libllvmmipsinfo \
- libllvmpowerpcasmprinter \
+ libllvmpowerpcinstprinter \
libllvmpowerpccodegen \
libllvmpowerpcinfo \
libllvmx86asmparser \
- libllvmx86asmprinter \
+ libllvmx86instprinter \
libllvmx86codegen \
libllvmx86disassembler \
- libllvmx86info
+ libllvmx86info \
+ libllvmx86utils
.endif
SUBDIR+= include
diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk
index 33b251b..579140e 100644
--- a/lib/clang/clang.build.mk
+++ b/lib/clang/clang.build.mk
@@ -38,7 +38,7 @@ TBLGEN=tblgen ${CFLAGS:M-I*}
Intrinsics.inc.h: ${LLVM_SRCS}/include/llvm/Intrinsics.td
${TBLGEN} -gen-intrinsic \
- ${LLVM_SRCS}/include/llvm/Intrinsics.td > ${.TARGET}
+ ${LLVM_SRCS}/include/llvm/Intrinsics.td > ${.TARGET}
.for arch in \
ARM/ARM Mips/Mips PowerPC/PPC X86/X86
. for hdr in \
@@ -53,72 +53,72 @@ Intrinsics.inc.h: ${LLVM_SRCS}/include/llvm/Intrinsics.td
FastISel/-gen-fast-isel \
InstrInfo/-gen-instr-desc \
InstrNames/-gen-instr-enums \
+ MCCodeEmitter/-gen-emitter,-mc-emitter \
RegisterInfo.h/-gen-register-desc-header \
RegisterInfo/-gen-register-desc \
RegisterNames/-gen-register-enums \
Subtarget/-gen-subtarget
${arch:T}Gen${hdr:H:C/$/.inc.h/}: ${LLVM_SRCS}/lib/Target/${arch:H}/${arch:T}.td
${TBLGEN} ${hdr:T:C/,/ /g} \
- ${LLVM_SRCS}/lib/Target/${arch:H}/${arch:T}.td > ${.TARGET}
+ ${LLVM_SRCS}/lib/Target/${arch:H}/${arch:T}.td > ${.TARGET}
. endfor
.endfor
+ARMGenDecoderTables.inc.h: ${LLVM_SRCS}/lib/Target/ARM/ARM.td
+ ${TBLGEN} -gen-arm-decoder ${.ALLSRC} > ${.TARGET}
+
Attrs.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
- ${TBLGEN} -I${CLANG_SRCS}/include/clang/Basic \
- -gen-clang-attr-classes ${.ALLSRC} > ${.TARGET}
+ ${TBLGEN} -gen-clang-attr-classes ${.ALLSRC} > ${.TARGET}
AttrImpl.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
- ${TBLGEN} -I${CLANG_SRCS}/include/clang/Basic \
- -gen-clang-attr-impl ${.ALLSRC} > ${.TARGET}
+ ${TBLGEN} -gen-clang-attr-impl ${.ALLSRC} > ${.TARGET}
AttrList.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
- ${TBLGEN} -I${CLANG_SRCS}/include/clang/Basic \
- -gen-clang-attr-list ${.ALLSRC} > ${.TARGET}
+ ${TBLGEN} -gen-clang-attr-list ${.ALLSRC} > ${.TARGET}
AttrPCHRead.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
- ${TBLGEN} -I${CLANG_SRCS}/include/clang/Basic \
- -gen-clang-attr-pch-read ${.ALLSRC} > ${.TARGET}
+ ${TBLGEN} -gen-clang-attr-pch-read ${.ALLSRC} > ${.TARGET}
AttrPCHWrite.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
- ${TBLGEN} -I${CLANG_SRCS}/include/clang/Basic \
- -gen-clang-attr-pch-write ${.ALLSRC} > ${.TARGET}
+ ${TBLGEN} -gen-clang-attr-pch-write ${.ALLSRC} > ${.TARGET}
+
+AttrSpellings.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td
+ ${TBLGEN} -gen-clang-attr-spelling-list ${.ALLSRC} > ${.TARGET}
DeclNodes.inc.h: ${CLANG_SRCS}/include/clang/Basic/DeclNodes.td
- ${TBLGEN} -I${CLANG_SRCS}/include/clang/Basic \
- -gen-clang-decl-nodes ${.ALLSRC} > ${.TARGET}
+ ${TBLGEN} -gen-clang-decl-nodes ${.ALLSRC} > ${.TARGET}
StmtNodes.inc.h: ${CLANG_SRCS}/include/clang/Basic/StmtNodes.td
- ${TBLGEN} -I${CLANG_SRCS}/include/clang/Basic \
- -gen-clang-stmt-nodes ${.ALLSRC} > ${.TARGET}
+ ${TBLGEN} -gen-clang-stmt-nodes ${.ALLSRC} > ${.TARGET}
arm_neon.inc.h: ${CLANG_SRCS}/include/clang/Basic/arm_neon.td
- ${TBLGEN} -I${CLANG_SRCS}/include/clang/Basic \
- -gen-arm-neon-sema ${.ALLSRC} > ${.TARGET}
+ ${TBLGEN} -gen-arm-neon-sema ${.ALLSRC} > ${.TARGET}
DiagnosticGroups.inc.h: ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
- ${TBLGEN} -I${CLANG_SRCS}/include/clang/Basic \
- -gen-clang-diag-groups \
- ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td > ${.TARGET}
+ ${TBLGEN} -gen-clang-diag-groups -I${CLANG_SRCS}/include/clang/Basic \
+ ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td > ${.TARGET}
.for hdr in AST Analysis Common Driver Frontend Lex Parse Sema
Diagnostic${hdr}Kinds.inc.h: ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
- ${TBLGEN} -I${CLANG_SRCS}/include/clang/Basic \
- -gen-clang-diags-defs -clang-component=${hdr} \
- ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td > ${.TARGET}
+ ${TBLGEN} -gen-clang-diags-defs -clang-component=${hdr} \
+ -I${CLANG_SRCS}/include/clang/Basic \
+ ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td > ${.TARGET}
.endfor
Options.inc.h: ${CLANG_SRCS}/include/clang/Driver/Options.td
- ${TBLGEN} -I${CLANG_SRCS}/include/clang/Driver \
- -gen-opt-parser-defs \
- ${CLANG_SRCS}/include/clang/Driver/Options.td > ${.TARGET}
+ ${TBLGEN} -gen-opt-parser-defs -I${CLANG_SRCS}/include/clang/Driver \
+ ${CLANG_SRCS}/include/clang/Driver/Options.td > ${.TARGET}
CC1Options.inc.h: ${CLANG_SRCS}/include/clang/Driver/CC1Options.td
- ${TBLGEN} -I${CLANG_SRCS}/include/clang/Driver \
- -gen-opt-parser-defs \
- ${CLANG_SRCS}/include/clang/Driver/CC1Options.td > ${.TARGET}
+ ${TBLGEN} -gen-opt-parser-defs -I${CLANG_SRCS}/include/clang/Driver \
+ ${CLANG_SRCS}/include/clang/Driver/CC1Options.td > ${.TARGET}
CC1AsOptions.inc.h: ${CLANG_SRCS}/include/clang/Driver/CC1AsOptions.td
- ${TBLGEN} -I${CLANG_SRCS}/include/clang/Driver \
- -gen-opt-parser-defs \
- ${CLANG_SRCS}/include/clang/Driver/CC1AsOptions.td > ${.TARGET}
+ ${TBLGEN} -gen-opt-parser-defs -I${CLANG_SRCS}/include/clang/Driver \
+ ${CLANG_SRCS}/include/clang/Driver/CC1AsOptions.td > ${.TARGET}
+
+Checkers.inc.h: ${CLANG_SRCS}/lib/StaticAnalyzer/Checkers/Checkers.td \
+ ${CLANG_SRCS}/include/clang/StaticAnalyzer/Checkers/CheckerBase.td
+ ${TBLGEN} -gen-clang-sa-checkers -I${CLANG_SRCS}/include \
+ ${CLANG_SRCS}/lib/StaticAnalyzer/Checkers/Checkers.td > ${.TARGET}
SRCS+= ${TGHDRS:C/$/.inc.h/}
DPADD+= ${TGHDRS:C/$/.inc.h/}
diff --git a/lib/clang/include/ARMGenDecoderTables.inc b/lib/clang/include/ARMGenDecoderTables.inc
new file mode 100644
index 0000000..b09685c
--- /dev/null
+++ b/lib/clang/include/ARMGenDecoderTables.inc
@@ -0,0 +1,2 @@
+/* $FreeBSD$ */
+#include "ARMGenDecoderTables.inc.h"
diff --git a/lib/clang/include/ARMGenEDInfo.inc b/lib/clang/include/ARMGenEDInfo.inc
new file mode 100644
index 0000000..c2b7a09
--- /dev/null
+++ b/lib/clang/include/ARMGenEDInfo.inc
@@ -0,0 +1,2 @@
+/* $FreeBSD$ */
+#include "ARMGenEDInfo.inc.h"
diff --git a/lib/clang/include/ARMGenMCCodeEmitter.inc b/lib/clang/include/ARMGenMCCodeEmitter.inc
new file mode 100644
index 0000000..82933f0
--- /dev/null
+++ b/lib/clang/include/ARMGenMCCodeEmitter.inc
@@ -0,0 +1,2 @@
+/* $FreeBSD$ */
+#include "ARMGenMCCodeEmitter.inc.h"
diff --git a/lib/clang/include/Checkers.inc b/lib/clang/include/Checkers.inc
new file mode 100644
index 0000000..d5b8138
--- /dev/null
+++ b/lib/clang/include/Checkers.inc
@@ -0,0 +1,2 @@
+/* $FreeBSD$ */
+#include "Checkers.inc.h"
diff --git a/lib/clang/include/Makefile b/lib/clang/include/Makefile
index e8319f8..9f3397d 100644
--- a/lib/clang/include/Makefile
+++ b/lib/clang/include/Makefile
@@ -2,7 +2,7 @@
.PATH: ${.CURDIR}/../../../contrib/llvm/tools/clang/lib/Headers
-INCSDIR=${INCLUDEDIR}/clang/2.8
+INCSDIR=${INCLUDEDIR}/clang/2.9
INCS= emmintrin.h \
mm_malloc.h \
diff --git a/lib/clang/include/PPCGenMCCodeEmitter.inc b/lib/clang/include/PPCGenMCCodeEmitter.inc
new file mode 100644
index 0000000..7bd37ce
--- /dev/null
+++ b/lib/clang/include/PPCGenMCCodeEmitter.inc
@@ -0,0 +1,2 @@
+/* $FreeBSD$ */
+#include "PPCGenMCCodeEmitter.inc.h"
diff --git a/lib/clang/include/clang/Basic/Version.inc b/lib/clang/include/clang/Basic/Version.inc
index f7a43ab..053c13b 100644
--- a/lib/clang/include/clang/Basic/Version.inc
+++ b/lib/clang/include/clang/Basic/Version.inc
@@ -1,10 +1,10 @@
/* $FreeBSD$ */
-#define CLANG_VERSION 2.8
+#define CLANG_VERSION 2.9
#define CLANG_VERSION_MAJOR 2
-#define CLANG_VERSION_MINOR 8
+#define CLANG_VERSION_MINOR 9
#define CLANG_VENDOR "FreeBSD "
-#define CLANG_VENDOR_SUFFIX " 20101007"
+#define CLANG_VENDOR_SUFFIX " 20110220"
-#define SVN_REVISION "115870"
+#define SVN_REVISION "126079"
diff --git a/lib/clang/include/clang/Lex/AttrSpellings.inc b/lib/clang/include/clang/Lex/AttrSpellings.inc
new file mode 100644
index 0000000..8859ae3
--- /dev/null
+++ b/lib/clang/include/clang/Lex/AttrSpellings.inc
@@ -0,0 +1,2 @@
+/* $FreeBSD$ */
+#include "AttrSpellings.inc.h"
diff --git a/lib/clang/include/llvm/ADT/iterator.h b/lib/clang/include/llvm/ADT/iterator.h
deleted file mode 100644
index b406266..0000000
--- a/lib/clang/include/llvm/ADT/iterator.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/* include/llvm/ADT/iterator.h. Generated from iterator.h.in by configure. */
-//==-- llvm/ADT/iterator.h - Portable wrapper around <iterator> --*- C++ -*-==//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This file provides a wrapper around the mysterious <iterator> header file.
-// In GCC 2.95.3, the file defines a bidirectional_iterator class (and other
-// friends), instead of the standard iterator class. In GCC 3.1, the
-// bidirectional_iterator class got moved out and the new, standards compliant,
-// iterator<> class was added. Because there is nothing that we can do to get
-// correct behavior on both compilers, we have this header with #ifdef's. Gross
-// huh?
-//
-// By #includ'ing this file, you get the contents of <iterator> plus the
-// following classes in the global namespace:
-//
-// 1. bidirectional_iterator
-// 2. forward_iterator
-//
-// The #if directives' expressions are filled in by Autoconf.
-//
-// $FreeBSD$
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_ADT_ITERATOR_H
-#define LLVM_ADT_ITERATOR_H
-
-#include <iterator>
-
-#define HAVE_BI_ITERATOR 0
-#define HAVE_STD_ITERATOR 1
-#define HAVE_FWD_ITERATOR 0
-
-#ifdef _MSC_VER
-# define HAVE_BI_ITERATOR 0
-# define HAVE_STD_ITERATOR 1
-# define HAVE_FWD_ITERATOR 0
-#endif
-
-#if !HAVE_BI_ITERATOR
-# if HAVE_STD_ITERATOR
-/// If the bidirectional iterator is not defined, we attempt to define it in
-/// terms of the C++ standard iterator. Otherwise, we import it with a "using"
-/// statement.
-///
-template<class Ty, class PtrDiffTy>
-struct bidirectional_iterator
- : public std::iterator<std::bidirectional_iterator_tag, Ty, PtrDiffTy> {
-};
-# else
-# error "Need to have standard iterator to define bidirectional iterator!"
-# endif
-#else
-using std::bidirectional_iterator;
-#endif
-
-#if !HAVE_FWD_ITERATOR
-# if HAVE_STD_ITERATOR
-/// If the forward iterator is not defined, attempt to define it in terms of
-/// the C++ standard iterator. Otherwise, we import it with a "using" statement.
-///
-template<class Ty, class PtrDiffTy>
-struct forward_iterator
- : public std::iterator<std::forward_iterator_tag, Ty, PtrDiffTy> {
-};
-# else
-# error "Need to have standard iterator to define forward iterator!"
-# endif
-#else
-using std::forward_iterator;
-#endif
-
-#endif // LLVM_ADT_ITERATOR_H
diff --git a/lib/clang/include/llvm/Config/AsmPrinters.def b/lib/clang/include/llvm/Config/AsmPrinters.def
index ab48b4a..ca335df 100644
--- a/lib/clang/include/llvm/Config/AsmPrinters.def
+++ b/lib/clang/include/llvm/Config/AsmPrinters.def
@@ -1,7 +1,7 @@
/* $FreeBSD$ */
-LLVM_ASM_PRINTER(Mips)
LLVM_ASM_PRINTER(ARM)
+LLVM_ASM_PRINTER(Mips)
LLVM_ASM_PRINTER(PowerPC)
LLVM_ASM_PRINTER(X86)
diff --git a/lib/clang/include/llvm/Config/Disassemblers.def b/lib/clang/include/llvm/Config/Disassemblers.def
index 9d9093a..3a65fa4 100644
--- a/lib/clang/include/llvm/Config/Disassemblers.def
+++ b/lib/clang/include/llvm/Config/Disassemblers.def
@@ -1,5 +1,6 @@
/* $FreeBSD$ */
+LLVM_DISASSEMBLER(ARM)
LLVM_DISASSEMBLER(X86)
#undef LLVM_DISASSEMBLER
diff --git a/lib/clang/include/llvm/Config/Targets.def b/lib/clang/include/llvm/Config/Targets.def
index e33b41e..85c3ffe 100644
--- a/lib/clang/include/llvm/Config/Targets.def
+++ b/lib/clang/include/llvm/Config/Targets.def
@@ -1,7 +1,7 @@
/* $FreeBSD$ */
-LLVM_TARGET(Mips)
LLVM_TARGET(ARM)
+LLVM_TARGET(Mips)
LLVM_TARGET(PowerPC)
LLVM_TARGET(X86)
diff --git a/lib/clang/include/llvm/Config/config.h b/lib/clang/include/llvm/Config/config.h
index 0b2a9d4..6671224 100644
--- a/lib/clang/include/llvm/Config/config.h
+++ b/lib/clang/include/llvm/Config/config.h
@@ -5,6 +5,9 @@
#ifndef CONFIG_H
#define CONFIG_H
+/* Relative directory for resource files */
+#define CLANG_RESOURCE_DIR ""
+
/* 32 bit multilib directory. */
#define CXX_INCLUDE_32BIT_DIR ""
@@ -120,6 +123,9 @@
/* Define if the neat program is available */
/* #undef HAVE_FDP */
+/* Define to 1 if you have the <fenv.h> header file. */
+#define HAVE_FENV_H 1
+
/* Define if libffi is available on this platform. */
/* #undef HAVE_FFI_CALL */
@@ -150,9 +156,6 @@
/* Define to 1 if you have the `getrusage' function. */
#define HAVE_GETRUSAGE 1
-/* Have Darwin getsect() support */
-/* #undef HAVE_GETSECT */
-
/* Define to 1 if you have the `gettimeofday' function. */
#define HAVE_GETTIMEOFDAY 1
@@ -226,9 +229,6 @@
/* Define to 1 if you have the <mach-o/dyld.h> header file. */
/* #undef HAVE_MACH_O_DYLD_H */
-/* Define to 1 if you have the <mach-o/getsect.h> header file. */
-/* #undef HAVE_MACH_O_GETSECT_H */
-
/* Define if mallinfo() is available on this platform. */
/* #undef HAVE_MALLINFO */
@@ -466,6 +466,9 @@
/* Define to 1 if you have the <windows.h> header file. */
/* #undef HAVE_WINDOWS_H */
+/* Define if the xdot.py program is available */
+/* #undef HAVE_XDOT_PY */
+
/* Define to 1 if you have the `__dso_handle' function. */
#define HAVE___DSO_HANDLE 1
@@ -473,10 +476,16 @@
/* #undef LLVM_MULTITHREADED */
/* LLVM architecture name for the native architecture, if available */
-#define LLVM_NATIVE_ARCH X86Target
+#define LLVM_NATIVE_ARCH X86
+
+/* LLVM name for the native AsmPrinter init function, if available */
+#define LLVM_NATIVE_ASMPRINTER LLVMInitializeX86AsmPrinter
-/* Short LLVM architecture name for the native architecture, if available */
-#define LLVM_NATIVE_ARCHNAME X86
+/* LLVM name for the native Target init function, if available */
+#define LLVM_NATIVE_TARGET LLVMInitializeX86Target
+
+/* LLVM name for the native TargetInfo init function, if available */
+#define LLVM_NATIVE_TARGETINFO LLVMInitializeX86TargetInfo
/* Define if this is Unixish platform */
#define LLVM_ON_UNIX 1
@@ -508,6 +517,9 @@
/* Define to path to twopi program if found or 'echo twopi' otherwise */
/* #undef LLVM_PATH_TWOPI */
+/* Define to path to xdot.py program if found or 'echo xdot.py' otherwise */
+/* #undef LLVM_PATH_XDOT_PY */
+
/* Installation prefix directory */
#define LLVM_PREFIX "/usr"
@@ -542,13 +554,13 @@
#define PACKAGE_NAME "llvm"
/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "llvm 2.8svn"
+#define PACKAGE_STRING "llvm 2.9svn"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "-llvm-"
/* Define to the version of this package. */
-#define PACKAGE_VERSION "2.8svn"
+#define PACKAGE_VERSION "2.9svn"
/* 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 1e11aab..04ff06f 100644
--- a/lib/clang/include/llvm/Config/llvm-config.h
+++ b/lib/clang/include/llvm/Config/llvm-config.h
@@ -22,10 +22,16 @@
/* #undef LLVM_MULTITHREADED */
/* LLVM architecture name for the native architecture, if available */
-#define LLVM_NATIVE_ARCH X86Target
+#define LLVM_NATIVE_ARCH X86
-/* Short LLVM architecture name for the native architecture, if available */
-#define LLVM_NATIVE_ARCHNAME X86
+/* LLVM name for the native Target init function, if available */
+#define LLVM_NATIVE_TARGET LLVMInitializeX86Target
+
+/* LLVM name for the native TargetInfo init function, if available */
+#define LLVM_NATIVE_TARGETINFO LLVMInitializeX86TargetInfo
+
+/* LLVM name for the native AsmPrinter init function, if available */
+#define LLVM_NATIVE_ASMPRINTER LLVMInitializeX86AsmPrinter
/* Define if this is Unixish platform */
#define LLVM_ON_UNIX 1
diff --git a/lib/clang/include/llvm/System/DataTypes.h b/lib/clang/include/llvm/Support/DataTypes.h
index fcec26c..d0fdb7c 100644
--- a/lib/clang/include/llvm/System/DataTypes.h
+++ b/lib/clang/include/llvm/Support/DataTypes.h
@@ -1,5 +1,5 @@
/* $FreeBSD$ */
-/* include/llvm/System/DataTypes.h. Generated from DataTypes.h.in by configure. */
+/* include/llvm/Support/DataTypes.h. Generated from DataTypes.h.in by configure. */
/*===-- include/System/DataTypes.h - Define fixed size types -----*- C -*-===*\
|* *|
|* The LLVM Compiler Infrastructure *|
@@ -17,7 +17,7 @@
|* [u]int(32|64)_t : typedefs for signed and unsigned 32/64 bit system types*|
|* [U]INT(8|16|32|64)_(MIN|MAX) : Constants for the min and max values. *|
|* *|
-|* No library is required when using these functinons. *|
+|* No library is required when using these functions. *|
|* *|
|*===----------------------------------------------------------------------===*/
@@ -65,7 +65,7 @@
#endif
#ifdef _AIX
-#include "llvm/System/AIXDataTypesFix.h"
+#include "llvm/Support/AIXDataTypesFix.h"
#endif
/* Handle incorrect definition of uint64_t as u_int64_t */
diff --git a/lib/clang/libclanganalysis/Makefile b/lib/clang/libclanganalysis/Makefile
index b3877d4..9f482e3 100644
--- a/lib/clang/libclanganalysis/Makefile
+++ b/lib/clang/libclanganalysis/Makefile
@@ -6,13 +6,15 @@ SRCDIR= tools/clang/lib/Analysis
SRCS= AnalysisContext.cpp \
CFG.cpp \
CFGStmtMap.cpp \
+ CocoaConventions.cpp \
FormatString.cpp \
LiveVariables.cpp \
PrintfFormatString.cpp \
PseudoConstantAnalysis.cpp \
ReachableCode.cpp \
ScanfFormatString.cpp \
- UninitializedValues.cpp
+ UninitializedValues.cpp \
+ UninitializedValuesV2.cpp
TGHDRS= AttrList \
Attrs \
diff --git a/lib/clang/libclangast/Makefile b/lib/clang/libclangast/Makefile
index 7e8731f..d68f477 100644
--- a/lib/clang/libclangast/Makefile
+++ b/lib/clang/libclangast/Makefile
@@ -19,14 +19,17 @@ SRCS= APValue.cpp \
DeclPrinter.cpp \
DeclTemplate.cpp \
DeclarationName.cpp \
+ DumpXML.cpp \
Expr.cpp \
ExprCXX.cpp \
ExprClassification.cpp \
ExprConstant.cpp \
- FullExpr.cpp \
InheritViz.cpp \
ItaniumCXXABI.cpp \
+ ItaniumMangle.cpp \
+ Mangle.cpp \
MicrosoftCXXABI.cpp \
+ MicrosoftMangle.cpp \
NestedNameSpecifier.cpp \
ParentMap.cpp \
RecordLayout.cpp \
@@ -49,6 +52,7 @@ TGHDRS= AttrImpl \
DeclNodes \
DiagnosticASTKinds \
DiagnosticCommonKinds \
+ DiagnosticSemaKinds \
StmtNodes
.include "../clang.lib.mk"
diff --git a/lib/clang/libclangbasic/Makefile b/lib/clang/libclangbasic/Makefile
index 5e5c5b0..eec370c 100644
--- a/lib/clang/libclangbasic/Makefile
+++ b/lib/clang/libclangbasic/Makefile
@@ -6,7 +6,9 @@ SRCDIR= tools/clang/lib/Basic
SRCS= Builtins.cpp \
ConvertUTF.c \
Diagnostic.cpp \
+ DiagnosticIDs.cpp \
FileManager.cpp \
+ FileSystemStatCache.cpp \
IdentifierTable.cpp \
SourceLocation.cpp \
SourceManager.cpp \
diff --git a/lib/clang/libclangcodegen/Makefile b/lib/clang/libclangcodegen/Makefile
index 80f203a..c174343 100644
--- a/lib/clang/libclangcodegen/Makefile
+++ b/lib/clang/libclangcodegen/Makefile
@@ -7,8 +7,10 @@ SRCS= BackendUtil.cpp \
CGBlocks.cpp \
CGBuiltin.cpp \
CGCXX.cpp \
+ CGCXXABI.cpp \
CGCall.cpp \
CGClass.cpp \
+ CGCleanup.cpp \
CGDebugInfo.cpp \
CGDecl.cpp \
CGDeclCXX.cpp \
@@ -31,9 +33,9 @@ SRCS= BackendUtil.cpp \
CodeGenAction.cpp \
CodeGenFunction.cpp \
CodeGenModule.cpp \
+ CodeGenTBAA.cpp \
CodeGenTypes.cpp \
ItaniumCXXABI.cpp \
- Mangle.cpp \
MicrosoftCXXABI.cpp \
ModuleBuilder.cpp \
TargetInfo.cpp
diff --git a/lib/clang/libclangfrontend/Makefile b/lib/clang/libclangfrontend/Makefile
index d655e44..45e064b 100644
--- a/lib/clang/libclangfrontend/Makefile
+++ b/lib/clang/libclangfrontend/Makefile
@@ -17,9 +17,11 @@ SRCS= ASTConsumers.cpp \
FrontendAction.cpp \
FrontendActions.cpp \
FrontendOptions.cpp \
+ HeaderIncludeGen.cpp \
InitHeaderSearch.cpp \
InitPreprocessor.cpp \
LangStandards.cpp \
+ MultiplexConsumer.cpp \
PrintPreprocessedOutput.cpp \
StmtXML.cpp \
TextDiagnosticBuffer.cpp \
diff --git a/lib/clang/libclanglex/Makefile b/lib/clang/libclanglex/Makefile
index 989be0d..7e659c6 100644
--- a/lib/clang/libclanglex/Makefile
+++ b/lib/clang/libclanglex/Makefile
@@ -23,7 +23,8 @@ SRCS= HeaderMap.cpp \
TokenConcatenation.cpp \
TokenLexer.cpp
-TGHDRS= DiagnosticCommonKinds \
+TGHDRS= AttrSpellings \
+ DiagnosticCommonKinds \
DiagnosticLexKinds
.include "../clang.lib.mk"
diff --git a/lib/clang/libclangsema/Makefile b/lib/clang/libclangsema/Makefile
index 96571cc..1425929 100644
--- a/lib/clang/libclangsema/Makefile
+++ b/lib/clang/libclangsema/Makefile
@@ -33,6 +33,7 @@ SRCS= AnalysisBasedWarnings.cpp \
SemaTemplateDeduction.cpp \
SemaTemplateInstantiate.cpp \
SemaTemplateInstantiateDecl.cpp \
+ SemaTemplateVariadic.cpp \
SemaType.cpp \
TargetAttributesSema.cpp
diff --git a/lib/clang/libclangchecker/Makefile b/lib/clang/libclangstaticanalyzercheckers/Makefile
index c7d2d71..8dca68e 100644
--- a/lib/clang/libclangchecker/Makefile
+++ b/lib/clang/libclangstaticanalyzercheckers/Makefile
@@ -1,76 +1,50 @@
# $FreeBSD$
-LIB= clangchecker
+LIB= clangstaticanalyzercheckers
-SRCDIR= tools/clang/lib/Checker
+SRCDIR= tools/clang/lib/StaticAnalyzer/Checkers
SRCS= AdjustedReturnValueChecker.cpp \
- AggExprVisitor.cpp \
- AnalysisConsumer.cpp \
- AnalysisManager.cpp \
+ AnalyzerStatsChecker.cpp \
ArrayBoundChecker.cpp \
+ ArrayBoundCheckerV2.cpp \
AttrNonNullChecker.cpp \
- BasicConstraintManager.cpp \
BasicObjCFoundationChecks.cpp \
- BasicStore.cpp \
- BasicValueFactory.cpp \
- BugReporter.cpp \
- BugReporterVisitors.cpp \
BuiltinFunctionChecker.cpp \
- CFRefCount.cpp \
CStringChecker.cpp \
CallAndMessageChecker.cpp \
CastSizeChecker.cpp \
CastToStructChecker.cpp \
- CheckDeadStores.cpp \
CheckObjCDealloc.cpp \
CheckObjCInstMethSignature.cpp \
CheckSecuritySyntaxOnly.cpp \
CheckSizeofPointer.cpp \
- Checker.cpp \
- CheckerHelpers.cpp \
- CocoaConventions.cpp \
+ ChrootChecker.cpp \
+ ClangSACheckerProvider.cpp \
+ DeadStoresChecker.cpp \
+ DebugCheckers.cpp \
DereferenceChecker.cpp \
DivZeroChecker.cpp \
- Environment.cpp \
- ExplodedGraph.cpp \
+ ExperimentalChecks.cpp \
+ ExprEngine.cpp \
FixedAddressChecker.cpp \
- FlatStore.cpp \
- FrontendActions.cpp \
- GRBlockCounter.cpp \
- GRCXXExprEngine.cpp \
- GRCoreEngine.cpp \
- GRExprEngine.cpp \
- GRExprEngineExperimentalChecks.cpp \
- GRState.cpp \
- HTMLDiagnostics.cpp \
IdempotentOperationChecker.cpp \
LLVMConventionsChecker.cpp \
MacOSXAPIChecker.cpp \
MallocChecker.cpp \
- ManagerRegistry.cpp \
- MemRegion.cpp \
NSAutoreleasePoolChecker.cpp \
NSErrorChecker.cpp \
NoReturnFunctionChecker.cpp \
OSAtomicChecker.cpp \
+ ObjCAtSyncChecker.cpp \
+ ObjCSelfInitChecker.cpp \
ObjCUnusedIVarsChecker.cpp \
- PathDiagnostic.cpp \
- PlistDiagnostics.cpp \
PointerArithChecker.cpp \
PointerSubChecker.cpp \
PthreadLockChecker.cpp \
- RangeConstraintManager.cpp \
- RegionStore.cpp \
ReturnPointerRangeChecker.cpp \
ReturnUndefChecker.cpp \
- SVals.cpp \
- SValuator.cpp \
- SimpleConstraintManager.cpp \
- SimpleSValuator.cpp \
StackAddrLeakChecker.cpp \
- Store.cpp \
StreamChecker.cpp \
- SymbolManager.cpp \
UndefBranchChecker.cpp \
UndefCapturedBlockVarChecker.cpp \
UndefResultChecker.cpp \
@@ -78,11 +52,11 @@ SRCS= AdjustedReturnValueChecker.cpp \
UndefinedAssignmentChecker.cpp \
UnixAPIChecker.cpp \
UnreachableCodeChecker.cpp \
- VLASizeChecker.cpp \
- ValueManager.cpp
+ VLASizeChecker.cpp
TGHDRS= AttrList \
Attrs \
+ Checkers \
DeclNodes \
DiagnosticCommonKinds \
StmtNodes
diff --git a/lib/clang/libclangstaticanalyzercore/Makefile b/lib/clang/libclangstaticanalyzercore/Makefile
new file mode 100644
index 0000000..59df789
--- /dev/null
+++ b/lib/clang/libclangstaticanalyzercore/Makefile
@@ -0,0 +1,45 @@
+# $FreeBSD$
+
+LIB= clangstaticanalyzercore
+
+SRCDIR= tools/clang/lib/StaticAnalyzer/Core
+SRCS= AggExprVisitor.cpp \
+ AnalysisManager.cpp \
+ BasicConstraintManager.cpp \
+ BasicStore.cpp \
+ BasicValueFactory.cpp \
+ BlockCounter.cpp \
+ BugReporter.cpp \
+ BugReporterVisitors.cpp \
+ CFRefCount.cpp \
+ CXXExprEngine.cpp \
+ Checker.cpp \
+ CheckerHelpers.cpp \
+ CheckerManager.cpp \
+ CoreEngine.cpp \
+ Environment.cpp \
+ ExplodedGraph.cpp \
+ FlatStore.cpp \
+ GRState.cpp \
+ HTMLDiagnostics.cpp \
+ MemRegion.cpp \
+ ObjCMessage.cpp \
+ PathDiagnostic.cpp \
+ PlistDiagnostics.cpp \
+ RangeConstraintManager.cpp \
+ RegionStore.cpp \
+ SValBuilder.cpp \
+ SVals.cpp \
+ SimpleConstraintManager.cpp \
+ SimpleSValBuilder.cpp \
+ Store.cpp \
+ SymbolManager.cpp \
+ TextPathDiagnostics.cpp
+
+TGHDRS= AttrList \
+ Attrs \
+ DeclNodes \
+ DiagnosticCommonKinds \
+ StmtNodes
+
+.include "../clang.lib.mk"
diff --git a/lib/clang/libclangstaticanalyzerfrontend/Makefile b/lib/clang/libclangstaticanalyzerfrontend/Makefile
new file mode 100644
index 0000000..1256743
--- /dev/null
+++ b/lib/clang/libclangstaticanalyzerfrontend/Makefile
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+LIB= clangstaticanalyzerfrontend
+
+SRCDIR= tools/clang/lib/StaticAnalyzer/Frontend
+SRCS= AnalysisConsumer.cpp \
+ CheckerRegistration.cpp \
+ FrontendActions.cpp
+
+TGHDRS= AttrList \
+ Attrs \
+ Checkers \
+ DeclNodes \
+ DiagnosticCommonKinds \
+ DiagnosticFrontendKinds \
+ StmtNodes
+
+.include "../clang.lib.mk"
diff --git a/lib/clang/libllvmanalysis/Makefile b/lib/clang/libllvmanalysis/Makefile
index 39881aa..eb2043e 100644
--- a/lib/clang/libllvmanalysis/Makefile
+++ b/lib/clang/libllvmanalysis/Makefile
@@ -8,15 +8,19 @@ SRCS= AliasAnalysis.cpp \
AliasAnalysisEvaluator.cpp \
AliasDebugger.cpp \
AliasSetTracker.cpp \
+ Analysis.cpp \
BasicAliasAnalysis.cpp \
CFGPrinter.cpp \
CaptureTracking.cpp \
ConstantFolding.cpp \
DbgInfoPrinter.cpp \
DebugInfo.cpp \
+ DIBuilder.cpp \
DomPrinter.cpp \
+ DominanceFrontier.cpp \
IVUsers.cpp \
InlineCost.cpp \
+ InstCount.cpp \
InstructionSimplify.cpp \
Interval.cpp \
IntervalPartition.cpp \
@@ -28,11 +32,12 @@ SRCS= AliasAnalysis.cpp \
LoopDependenceAnalysis.cpp \
LoopInfo.cpp \
LoopPass.cpp \
+ MemDepPrinter.cpp \
MemoryBuiltins.cpp \
MemoryDependenceAnalysis.cpp \
ModuleDebugInfoPrinter.cpp \
+ NoAliasAnalysis.cpp \
PHITransAddr.cpp \
- PointerTracking.cpp \
PostDominators.cpp \
ProfileEstimatorPass.cpp \
ProfileInfo.cpp \
@@ -40,12 +45,14 @@ SRCS= AliasAnalysis.cpp \
ProfileInfoLoaderPass.cpp \
ProfileVerifierPass.cpp \
RegionInfo.cpp \
+ RegionPass.cpp \
RegionPrinter.cpp \
ScalarEvolution.cpp \
ScalarEvolutionAliasAnalysis.cpp \
ScalarEvolutionExpander.cpp \
ScalarEvolutionNormalization.cpp \
SparsePropagation.cpp \
+ TypeBasedAliasAnalysis.cpp \
ValueTracking.cpp
TGHDRS= Intrinsics
diff --git a/lib/clang/libllvmarmcodegen/Makefile b/lib/clang/libllvmarmcodegen/Makefile
index 4120251..c19a451 100644
--- a/lib/clang/libllvmarmcodegen/Makefile
+++ b/lib/clang/libllvmarmcodegen/Makefile
@@ -3,19 +3,25 @@
LIB= llvmarmcodegen
SRCDIR= lib/Target/ARM
-SRCS= ARMAsmPrinter.cpp \
+SRCS= ARMAsmBackend.cpp \
+ ARMAsmPrinter.cpp \
ARMBaseInstrInfo.cpp \
ARMBaseRegisterInfo.cpp \
ARMCodeEmitter.cpp \
ARMConstantIslandPass.cpp \
ARMConstantPoolValue.cpp \
+ ARMELFWriterInfo.cpp \
ARMExpandPseudoInsts.cpp \
ARMFastISel.cpp \
+ ARMFrameLowering.cpp \
ARMGlobalMerge.cpp \
+ ARMHazardRecognizer.cpp \
ARMISelDAGToDAG.cpp \
ARMISelLowering.cpp \
ARMInstrInfo.cpp \
ARMJITInfo.cpp \
+ ARMMCCodeEmitter.cpp \
+ ARMMCExpr.cpp \
ARMLoadStoreOptimizer.cpp \
ARMMCAsmInfo.cpp \
ARMMCInstLower.cpp \
@@ -24,11 +30,11 @@ SRCS= ARMAsmPrinter.cpp \
ARMSubtarget.cpp \
ARMTargetMachine.cpp \
ARMTargetObjectFile.cpp \
+ MLxExpansionPass.cpp \
NEONMoveFix.cpp \
- NEONPreAllocPass.cpp \
+ Thumb1FrameLowering.cpp \
Thumb1InstrInfo.cpp \
Thumb1RegisterInfo.cpp \
- Thumb2HazardRecognizer.cpp \
Thumb2ITBlockPass.cpp \
Thumb2InstrInfo.cpp \
Thumb2RegisterInfo.cpp \
@@ -41,6 +47,7 @@ TGHDRS= ARMGenAsmWriter \
ARMGenFastISel \
ARMGenInstrInfo \
ARMGenInstrNames \
+ ARMGenMCCodeEmitter \
ARMGenRegisterInfo \
ARMGenRegisterInfo.h \
ARMGenRegisterNames \
diff --git a/lib/clang/libllvmarmdisassembler/Makefile b/lib/clang/libllvmarmdisassembler/Makefile
new file mode 100644
index 0000000..c824560
--- /dev/null
+++ b/lib/clang/libllvmarmdisassembler/Makefile
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+LIB= llvmarmdisassembler
+
+SRCDIR= lib/Target/ARM/Disassembler
+INCDIR= lib/Target/ARM
+SRCS= ARMDisassemblerCore.cpp
+
+TGHDRS= ARMGenDecoderTables \
+ ARMGenEDInfo \
+ ARMGenInstrInfo \
+ ARMGenInstrNames \
+ ARMGenRegisterInfo.h \
+ ARMGenRegisterNames
+
+.include "../clang.lib.mk"
diff --git a/lib/clang/libllvmarmasmprinter/Makefile b/lib/clang/libllvmarminstprinter/Makefile
index bd333a7..630f12a 100644
--- a/lib/clang/libllvmarmasmprinter/Makefile
+++ b/lib/clang/libllvmarminstprinter/Makefile
@@ -1,8 +1,8 @@
# $FreeBSD$
-LIB= llvmarmasmprinter
+LIB= llvmarminstprinter
-SRCDIR= lib/Target/ARM/AsmPrinter
+SRCDIR= lib/Target/ARM/InstPrinter
INCDIR= lib/Target/ARM
SRCS= ARMInstPrinter.cpp
diff --git a/lib/clang/libllvmasmprinter/Makefile b/lib/clang/libllvmasmprinter/Makefile
index 37cceec..35f942c 100644
--- a/lib/clang/libllvmasmprinter/Makefile
+++ b/lib/clang/libllvmasmprinter/Makefile
@@ -7,8 +7,10 @@ SRCS= AsmPrinter.cpp \
AsmPrinterDwarf.cpp \
AsmPrinterInlineAsm.cpp \
DIE.cpp \
+ DwarfCFIException.cpp \
DwarfDebug.cpp \
DwarfException.cpp \
+ DwarfTableException.cpp \
OcamlGCPrinter.cpp
.include "../clang.lib.mk"
diff --git a/lib/clang/libllvmcodegen/Makefile b/lib/clang/libllvmcodegen/Makefile
index 4a450bd..bd9b707 100644
--- a/lib/clang/libllvmcodegen/Makefile
+++ b/lib/clang/libllvmcodegen/Makefile
@@ -14,6 +14,8 @@ SRCS= AggressiveAntiDepBreaker.cpp \
DwarfEHPrepare.cpp \
ELFCodeEmitter.cpp \
ELFWriter.cpp \
+ EdgeBundles.cpp \
+ ExpandISelPseudos.cpp \
GCMetadata.cpp \
GCStrategy.cpp \
IfConversion.cpp \
@@ -21,10 +23,13 @@ SRCS= AggressiveAntiDepBreaker.cpp \
IntrinsicLowering.cpp \
LLVMTargetMachine.cpp \
LatencyPriorityQueue.cpp \
+ LiveDebugVariables.cpp \
LiveInterval.cpp \
LiveIntervalAnalysis.cpp \
+ LiveIntervalUnion.cpp \
LiveStackAnalysis.cpp \
LiveVariables.cpp \
+ LiveRangeEdit.cpp \
LocalStackSlotAllocation.cpp \
LowerSubregs.cpp \
MachineBasicBlock.cpp \
@@ -48,14 +53,15 @@ SRCS= AggressiveAntiDepBreaker.cpp \
OcamlGC.cpp \
OptimizePHIs.cpp \
PHIElimination.cpp \
+ PHIEliminationUtils.cpp \
Passes.cpp \
PeepholeOptimizer.cpp \
- PostRAHazardRecognizer.cpp \
PostRASchedulerList.cpp \
PreAllocSplitting.cpp \
ProcessImplicitDefs.cpp \
PrologEpilogInserter.cpp \
PseudoSourceValue.cpp \
+ RegAllocBasic.cpp \
RegAllocFast.cpp \
RegAllocLinearScan.cpp \
RegAllocPBQP.cpp \
@@ -66,6 +72,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \
ScheduleDAGEmit.cpp \
ScheduleDAGInstrs.cpp \
ScheduleDAGPrinter.cpp \
+ ScoreboardHazardRecognizer.cpp \
ShadowStackGC.cpp \
ShrinkWrapping.cpp \
SimpleRegisterCoalescing.cpp \
diff --git a/lib/clang/libllvmcore/Makefile b/lib/clang/libllvmcore/Makefile
index 08822e9..961f15b 100644
--- a/lib/clang/libllvmcore/Makefile
+++ b/lib/clang/libllvmcore/Makefile
@@ -32,6 +32,7 @@ SRCS= AsmWriter.cpp \
Type.cpp \
TypeSymbolTable.cpp \
Use.cpp \
+ User.cpp \
Value.cpp \
ValueSymbolTable.cpp \
ValueTypes.cpp \
diff --git a/lib/clang/libllvmipo/Makefile b/lib/clang/libllvmipo/Makefile
index 87070ec..5653684 100644
--- a/lib/clang/libllvmipo/Makefile
+++ b/lib/clang/libllvmipo/Makefile
@@ -20,7 +20,6 @@ SRCS= ArgumentPromotion.cpp \
LowerSetJmp.cpp \
MergeFunctions.cpp \
PartialInlining.cpp \
- PartialSpecialization.cpp \
PruneEH.cpp \
StripDeadPrototypes.cpp \
StripSymbols.cpp \
diff --git a/lib/clang/libllvmmc/Makefile b/lib/clang/libllvmmc/Makefile
index ed281cb..5bbff4b 100644
--- a/lib/clang/libllvmmc/Makefile
+++ b/lib/clang/libllvmmc/Makefile
@@ -11,15 +11,19 @@ SRCS= ELFObjectWriter.cpp \
MCAssembler.cpp \
MCCodeEmitter.cpp \
MCContext.cpp \
+ MCDwarf.cpp \
+ MCELFObjectTargetWriter.cpp \
MCELFStreamer.cpp \
MCExpr.cpp \
MCInst.cpp \
MCInstPrinter.cpp \
MCLoggingStreamer.cpp \
MCMachOStreamer.cpp \
+ MCMachObjectTargetWriter.cpp \
MCNullStreamer.cpp \
MCObjectStreamer.cpp \
MCObjectWriter.cpp \
+ MCPureStreamer.cpp \
MCSection.cpp \
MCSectionCOFF.cpp \
MCSectionELF.cpp \
diff --git a/lib/clang/libllvmmcparser/Makefile b/lib/clang/libllvmmcparser/Makefile
index 9354af5..4f2f8bf 100644
--- a/lib/clang/libllvmmcparser/Makefile
+++ b/lib/clang/libllvmmcparser/Makefile
@@ -5,6 +5,7 @@ LIB= llvmmcparser
SRCDIR= lib/MC/MCParser
SRCS= AsmLexer.cpp \
AsmParser.cpp \
+ COFFAsmParser.cpp \
DarwinAsmParser.cpp \
ELFAsmParser.cpp \
MCAsmLexer.cpp \
diff --git a/lib/clang/libllvmmipsasmprinter/Makefile b/lib/clang/libllvmmipsasmprinter/Makefile
deleted file mode 100644
index 6c21785..0000000
--- a/lib/clang/libllvmmipsasmprinter/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $FreeBSD$
-
-LIB= llvmmipsasmprinter
-
-SRCDIR= lib/Target/Mips/AsmPrinter
-INCDIR= lib/Target/Mips
-SRCS= MipsAsmPrinter.cpp
-
-TGHDRS= MipsGenAsmWriter \
- MipsGenInstrNames \
- MipsGenRegisterInfo.h \
- MipsGenRegisterNames
-
-.include "../clang.lib.mk"
diff --git a/lib/clang/libllvmmipscodegen/Makefile b/lib/clang/libllvmmipscodegen/Makefile
index 5fd50bd..ce84aa4 100644
--- a/lib/clang/libllvmmipscodegen/Makefile
+++ b/lib/clang/libllvmmipscodegen/Makefile
@@ -3,7 +3,9 @@
LIB= llvmmipscodegen
SRCDIR= lib/Target/Mips
-SRCS= MipsDelaySlotFiller.cpp \
+SRCS= MipsAsmPrinter.cpp \
+ MipsDelaySlotFiller.cpp \
+ MipsFrameLowering.cpp \
MipsISelDAGToDAG.cpp \
MipsISelLowering.cpp \
MipsInstrInfo.cpp \
@@ -15,6 +17,7 @@ SRCS= MipsDelaySlotFiller.cpp \
MipsTargetObjectFile.cpp
TGHDRS= Intrinsics \
+ MipsGenAsmWriter \
MipsGenCallingConv \
MipsGenDAGISel \
MipsGenInstrInfo \
diff --git a/lib/clang/libllvmpowerpccodegen/Makefile b/lib/clang/libllvmpowerpccodegen/Makefile
index 58b01c9..7d43ae1 100644
--- a/lib/clang/libllvmpowerpccodegen/Makefile
+++ b/lib/clang/libllvmpowerpccodegen/Makefile
@@ -3,14 +3,19 @@
LIB= llvmpowerpccodegen
SRCDIR= lib/Target/PowerPC
-SRCS= PPCBranchSelector.cpp \
+SRCS= PPCAsmBackend.cpp \
+ PPCAsmPrinter.cpp \
+ PPCBranchSelector.cpp \
PPCCodeEmitter.cpp \
+ PPCFrameLowering.cpp \
PPCHazardRecognizers.cpp \
PPCISelDAGToDAG.cpp \
PPCISelLowering.cpp \
PPCInstrInfo.cpp \
PPCJITInfo.cpp \
PPCMCAsmInfo.cpp \
+ PPCMCCodeEmitter.cpp \
+ PPCMCInstLower.cpp \
PPCPredicates.cpp \
PPCRegisterInfo.cpp \
PPCSelectionDAGInfo.cpp \
@@ -23,6 +28,7 @@ TGHDRS= Intrinsics \
PPCGenDAGISel \
PPCGenInstrInfo \
PPCGenInstrNames \
+ PPCGenMCCodeEmitter \
PPCGenRegisterInfo \
PPCGenRegisterInfo.h \
PPCGenRegisterNames \
diff --git a/lib/clang/libllvmpowerpcasmprinter/Makefile b/lib/clang/libllvmpowerpcinstprinter/Makefile
index 15559b3..8be81c4 100644
--- a/lib/clang/libllvmpowerpcasmprinter/Makefile
+++ b/lib/clang/libllvmpowerpcinstprinter/Makefile
@@ -1,10 +1,10 @@
# $FreeBSD$
-LIB= llvmpowerpcasmprinter
+LIB= llvmpowerpcinstprinter
-SRCDIR= lib/Target/PowerPC/AsmPrinter
+SRCDIR= lib/Target/PowerPC/InstPrinter
INCDIR= lib/Target/PowerPC
-SRCS= PPCAsmPrinter.cpp
+SRCS= PPCInstPrinter.cpp
TGHDRS= PPCGenAsmWriter \
PPCGenInstrNames \
diff --git a/lib/clang/libllvmscalaropts/Makefile b/lib/clang/libllvmscalaropts/Makefile
index f057549..e4824b5 100644
--- a/lib/clang/libllvmscalaropts/Makefile
+++ b/lib/clang/libllvmscalaropts/Makefile
@@ -10,13 +10,14 @@ SRCS= ADCE.cpp \
CorrelatedValuePropagation.cpp \
DCE.cpp \
DeadStoreElimination.cpp \
+ EarlyCSE.cpp \
GEPSplitter.cpp \
GVN.cpp \
IndVarSimplify.cpp \
JumpThreading.cpp \
LICM.cpp \
LoopDeletion.cpp \
- LoopIndexSplit.cpp \
+ LoopIdiomRecognize.cpp \
LoopRotation.cpp \
LoopStrengthReduce.cpp \
LoopUnrollPass.cpp \
diff --git a/lib/clang/libllvmsupport/Makefile b/lib/clang/libllvmsupport/Makefile
index e26da0a..72f5c57 100644
--- a/lib/clang/libllvmsupport/Makefile
+++ b/lib/clang/libllvmsupport/Makefile
@@ -7,6 +7,7 @@ SRCS= APFloat.cpp \
APInt.cpp \
APSInt.cpp \
Allocator.cpp \
+ Atomic.cpp \
CommandLine.cpp \
ConstantRange.cpp \
CrashRecoveryContext.cpp \
@@ -14,15 +15,29 @@ SRCS= APFloat.cpp \
Debug.cpp \
DeltaAlgorithm.cpp \
Dwarf.cpp \
+ DynamicLibrary.cpp \
+ Errno.cpp \
ErrorHandling.cpp \
FoldingSet.cpp \
FormattedStream.cpp \
GraphWriter.cpp \
+ Host.cpp \
+ IntervalMap.cpp \
+ IntEqClasses.cpp \
ManagedStatic.cpp \
+ Memory.cpp \
MemoryBuffer.cpp \
+ Mutex.cpp \
+ Path.cpp \
+ PathV2.cpp \
PluginLoader.cpp \
PrettyStackTrace.cpp \
+ Process.cpp \
+ Program.cpp \
+ RWMutex.cpp \
Regex.cpp \
+ SearchForAddressOfSpecialSymbol.cpp \
+ Signals.cpp \
SmallPtrSet.cpp \
SmallVector.cpp \
SourceMgr.cpp \
@@ -32,9 +47,14 @@ SRCS= APFloat.cpp \
StringPool.cpp \
StringRef.cpp \
TargetRegistry.cpp \
+ ThreadLocal.cpp \
+ Threading.cpp \
+ TimeValue.cpp \
Timer.cpp \
+ ToolOutputFile.cpp \
Triple.cpp \
Twine.cpp \
+ Valgrind.cpp \
circular_raw_ostream.cpp \
raw_os_ostream.cpp \
raw_ostream.cpp \
@@ -42,7 +62,8 @@ SRCS= APFloat.cpp \
regerror.c \
regexec.c \
regfree.c \
- regstrlcpy.c
+ regstrlcpy.c \
+ system_error.cpp
LLVM_REQUIRES_RTTI=
.include "../clang.lib.mk"
diff --git a/lib/clang/libllvmsystem/Makefile b/lib/clang/libllvmsystem/Makefile
deleted file mode 100644
index 99957f6..0000000
--- a/lib/clang/libllvmsystem/Makefile
+++ /dev/null
@@ -1,24 +0,0 @@
-# $FreeBSD$
-
-LIB= llvmsystem
-
-SRCDIR= lib/System
-SRCS= Atomic.cpp \
- DynamicLibrary.cpp \
- Errno.cpp \
- Host.cpp \
- Memory.cpp \
- Mutex.cpp \
- Path.cpp \
- Process.cpp \
- Program.cpp \
- RWMutex.cpp \
- SearchForAddressOfSpecialSymbol.cpp \
- Signals.cpp \
- ThreadLocal.cpp \
- Threading.cpp \
- TimeValue.cpp \
- Valgrind.cpp
-LLVM_REQUIRES_RTTI=
-
-.include "../clang.lib.mk"
diff --git a/lib/clang/libllvmtarget/Makefile b/lib/clang/libllvmtarget/Makefile
index 71306a3..56544d1 100644
--- a/lib/clang/libllvmtarget/Makefile
+++ b/lib/clang/libllvmtarget/Makefile
@@ -6,11 +6,13 @@ SRCDIR= lib/Target
SRCS= Mangler.cpp \
SubtargetFeature.cpp \
Target.cpp \
+ TargetAsmInfo.cpp \
TargetAsmLexer.cpp \
TargetData.cpp \
TargetELFWriterInfo.cpp \
- TargetFrameInfo.cpp \
+ TargetFrameLowering.cpp \
TargetInstrInfo.cpp \
+ TargetLibraryInfo.cpp \
TargetLoweringObjectFile.cpp \
TargetMachine.cpp \
TargetRegisterInfo.cpp \
diff --git a/lib/clang/libllvmx86codegen/Makefile b/lib/clang/libllvmx86codegen/Makefile
index 4f7e8d1..300ad9a 100644
--- a/lib/clang/libllvmx86codegen/Makefile
+++ b/lib/clang/libllvmx86codegen/Makefile
@@ -11,6 +11,7 @@ SRCS= SSEDomainFix.cpp \
X86ELFWriterInfo.cpp \
X86FastISel.cpp \
X86FloatingPoint.cpp \
+ X86FrameLowering.cpp \
X86ISelDAGToDAG.cpp \
X86ISelLowering.cpp \
X86InstrInfo.cpp \
@@ -18,6 +19,7 @@ SRCS= SSEDomainFix.cpp \
X86MCAsmInfo.cpp \
X86MCCodeEmitter.cpp \
X86MCInstLower.cpp \
+ X86MachObjectWriter.cpp \
X86RegisterInfo.cpp \
X86SelectionDAGInfo.cpp \
X86Subtarget.cpp \
diff --git a/lib/clang/libllvmx86asmprinter/Makefile b/lib/clang/libllvmx86instprinter/Makefile
index 75a3d1a..dda091e 100644
--- a/lib/clang/libllvmx86asmprinter/Makefile
+++ b/lib/clang/libllvmx86instprinter/Makefile
@@ -1,8 +1,8 @@
# $FreeBSD$
-LIB= llvmx86asmprinter
+LIB= llvmx86instprinter
-SRCDIR= lib/Target/X86/AsmPrinter
+SRCDIR= lib/Target/X86/InstPrinter
INCDIR= lib/Target/X86
SRCS= X86ATTInstPrinter.cpp \
X86InstComments.cpp \
diff --git a/lib/clang/libllvmx86utils/Makefile b/lib/clang/libllvmx86utils/Makefile
new file mode 100644
index 0000000..bbed6b0
--- /dev/null
+++ b/lib/clang/libllvmx86utils/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+LIB= llvmx86utils
+
+SRCDIR= lib/Target/X86/Utils
+INCDIR= lib/Target/X86
+SRCS= X86ShuffleDecode.cpp
+
+.include "../clang.lib.mk"
diff --git a/lib/libz/Makefile b/lib/libz/Makefile
index 1343c6f..c03a1c3 100644
--- a/lib/libz/Makefile
+++ b/lib/libz/Makefile
@@ -47,6 +47,10 @@ ACFLAGS+= -Wa,--noexecstack
SRCS+= gvmat64.S
CFLAGS+= -DASMV -DNO_UNDERLINE
ACFLAGS+= -Wa,--noexecstack
+.if ${CC:T:Mclang} == "clang"
+# XXX: clang integrated-as doesn't grok .intel_syntax directives yet
+ACFLAGS+= ${.IMPSRC:T:Mgvmat64.S:C/^.+$/-no-integrated-as/}
+.endif
.endif
VERSION_DEF= ${.CURDIR}/Versions.def
OpenPOWER on IntegriCloud