diff options
author | obrien <obrien@FreeBSD.org> | 2013-02-08 16:10:16 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2013-02-08 16:10:16 +0000 |
commit | 3028e3f8aba938dfd0bf9fda987b8a72140b8027 (patch) | |
tree | b2f038222ff8a70f687652441df00d2b564c8abe /lib/clang | |
parent | 952a6d5a7cd3d3f9007acfa06805262fc04a105f (diff) | |
parent | 1d08d5f677c1dfa810e381073590adbae19cc69f (diff) | |
download | FreeBSD-src-3028e3f8aba938dfd0bf9fda987b8a72140b8027.zip FreeBSD-src-3028e3f8aba938dfd0bf9fda987b8a72140b8027.tar.gz |
Sync with HEAD.
Diffstat (limited to 'lib/clang')
78 files changed, 260 insertions, 144 deletions
diff --git a/lib/clang/Makefile b/lib/clang/Makefile index dde515e..a77d241 100644 --- a/lib/clang/Makefile +++ b/lib/clang/Makefile @@ -3,8 +3,20 @@ .include <bsd.own.mk> .if !make(install) +.if !defined(EARLY_BUILD) && defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no" +_libclangstaticanalyzer= \ + libclangstaticanalyzercheckers \ + libclangstaticanalyzercore \ + libclangstaticanalyzerfrontend +_libclangarcmigrate= \ + libclangarcmigrate +_libclangrewriter= \ + libclangrewritecore \ + libclangrewritefrontend +.endif # !EARLY_BUILD && MK_CLANG_FULL + SUBDIR= libclanganalysis \ - libclangarcmigrate \ + ${_libclangarcmigrate} \ libclangast \ libclangbasic \ libclangcodegen \ @@ -14,12 +26,10 @@ SUBDIR= libclanganalysis \ libclangfrontendtool \ libclanglex \ libclangparse \ - libclangrewrite \ + ${_libclangrewriter} \ libclangsema \ libclangserialization \ - libclangstaticanalyzercheckers \ - libclangstaticanalyzercore \ - libclangstaticanalyzerfrontend \ + ${_libclangstaticanalyzer} \ \ libllvmanalysis \ libllvmarchive \ @@ -70,18 +80,15 @@ SUBDIR= libclanganalysis \ libllvmx86utils .if ${MK_CLANG_EXTRAS} != "no" -SUBDIR+=libllvmarchive \ - libllvmdebuginfo \ +SUBDIR+=libllvmdebuginfo \ libllvmexecutionengine \ libllvminterpreter \ libllvmjit \ - libllvmlinker \ libllvmmcdisassembler \ libllvmmcjit \ - libllvmobject \ libllvmruntimedyld -.endif -.endif +.endif # MK_CLANG_EXTRAS +.endif # !make(install) SUBDIR+= include diff --git a/lib/clang/clang.build.mk b/lib/clang/clang.build.mk index 40dc4ab..0015e3d 100644 --- a/lib/clang/clang.build.mk +++ b/lib/clang/clang.build.mk @@ -8,6 +8,12 @@ CFLAGS+= -I${LLVM_SRCS}/include -I${CLANG_SRCS}/include \ -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD \ -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS #-DNDEBUG +.if !defined(EARLY_BUILD) && defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no" +CFLAGS+= -DCLANG_ENABLE_ARCMT \ + -DCLANG_ENABLE_REWRITER \ + -DCLANG_ENABLE_STATIC_ANALYZER +.endif # !EARLY_BUILD && MK_CLANG_FULL + # LLVM is not strict aliasing safe as of 12/31/2011 CFLAGS+= -fno-strict-aliasing @@ -16,20 +22,9 @@ BUILD_ARCH?= ${MACHINE_ARCH} TARGET_TRIPLE?= ${TARGET_ARCH:C/amd64/x86_64/}-unknown-freebsd10.0 BUILD_TRIPLE?= ${BUILD_ARCH:C/amd64/x86_64/}-unknown-freebsd10.0 CFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE=\"${TARGET_TRIPLE}\" \ - -DLLVM_HOSTTRIPLE=\"${BUILD_TRIPLE}\" - -.ifndef LLVM_REQUIRES_EH -CXXFLAGS+= -fno-exceptions -.else -# If the library or program requires EH, it also requires RTTI. -LLVM_REQUIRES_RTTI= -.endif - -.ifndef LLVM_REQUIRES_RTTI -CXXFLAGS+= -fno-rtti -.endif - -CFLAGS+= -DDEFAULT_SYSROOT=\"${TOOLS_PREFIX}\" + -DLLVM_HOSTTRIPLE=\"${BUILD_TRIPLE}\" \ + -DDEFAULT_SYSROOT=\"${TOOLS_PREFIX}\" +CXXFLAGS+= -fno-exceptions -fno-rtti .PATH: ${LLVM_SRCS}/${SRCDIR} @@ -114,6 +109,18 @@ AttrTemplateInstantiate.inc.h: ${CLANG_SRCS}/include/clang/Basic/Attr.td -gen-clang-attr-template-instantiate -o ${.TARGET} \ -I ${CLANG_SRCS}/include ${.ALLSRC} +CommentCommandInfo.inc.h: ${CLANG_SRCS}/include/clang/AST/CommentCommands.td + ${CLANG_TBLGEN} -I ${CLANG_SRCS}/include/clang/AST ${TBLINC} \ + -gen-clang-comment-command-info -o ${.TARGET} ${.ALLSRC} + +CommentHTMLTags.inc.h: ${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td + ${CLANG_TBLGEN} -I ${CLANG_SRCS}/include/clang/AST ${TBLINC} \ + -gen-clang-comment-html-tags -o ${.TARGET} ${.ALLSRC} + +CommentHTMLTagsProperties.inc.h: ${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td + ${CLANG_TBLGEN} -I ${CLANG_SRCS}/include/clang/AST ${TBLINC} \ + -gen-clang-comment-html-tags-properties -o ${.TARGET} ${.ALLSRC} + CommentNodes.inc.h: ${CLANG_SRCS}/include/clang/Basic/CommentNodes.td ${CLANG_TBLGEN} -I ${CLANG_SRCS}/include/clang/AST ${TBLINC} \ -gen-clang-comment-nodes -o ${.TARGET} ${.ALLSRC} diff --git a/lib/clang/include/Makefile b/lib/clang/include/Makefile index 93d91c7..918c6df 100644 --- a/lib/clang/include/Makefile +++ b/lib/clang/include/Makefile @@ -4,7 +4,9 @@ INCSDIR=${INCLUDEDIR}/clang/3.2 -INCS= altivec.h \ +INCS= __wmmintrin_aes.h \ + __wmmintrin_pclmul.h \ + altivec.h \ ammintrin.h \ avx2intrin.h \ avxintrin.h \ @@ -12,6 +14,7 @@ INCS= altivec.h \ bmiintrin.h \ cpuid.h \ emmintrin.h \ + f16cintrin.h \ fma4intrin.h \ fmaintrin.h \ immintrin.h \ @@ -23,6 +26,7 @@ INCS= altivec.h \ nmmintrin.h \ pmmintrin.h \ popcntintrin.h \ + rtmintrin.h \ smmintrin.h \ tmmintrin.h \ wmmintrin.h \ diff --git a/lib/clang/include/MipsGenAsmMatcher.inc b/lib/clang/include/MipsGenAsmMatcher.inc new file mode 100644 index 0000000..b9e2fd1 --- /dev/null +++ b/lib/clang/include/MipsGenAsmMatcher.inc @@ -0,0 +1,2 @@ +/* $FreeBSD$ */ +#include "MipsGenAsmMatcher.inc.h" diff --git a/lib/clang/include/MipsGenMCPseudoLowering.inc b/lib/clang/include/MipsGenMCPseudoLowering.inc new file mode 100644 index 0000000..4e4cbbe --- /dev/null +++ b/lib/clang/include/MipsGenMCPseudoLowering.inc @@ -0,0 +1,2 @@ +/* $FreeBSD$ */ +#include "MipsGenMCPseudoLowering.inc.h" diff --git a/lib/clang/include/clang/AST/CommentCommandInfo.inc b/lib/clang/include/clang/AST/CommentCommandInfo.inc new file mode 100644 index 0000000..cd17190 --- /dev/null +++ b/lib/clang/include/clang/AST/CommentCommandInfo.inc @@ -0,0 +1,2 @@ +/* $FreeBSD$ */ +#include "CommentCommandInfo.inc.h" diff --git a/lib/clang/include/clang/AST/CommentHTMLTags.inc b/lib/clang/include/clang/AST/CommentHTMLTags.inc new file mode 100644 index 0000000..0932f32 --- /dev/null +++ b/lib/clang/include/clang/AST/CommentHTMLTags.inc @@ -0,0 +1,2 @@ +/* $FreeBSD$ */ +#include "CommentHTMLTags.inc.h" diff --git a/lib/clang/include/clang/AST/CommentHTMLTagsProperties.inc b/lib/clang/include/clang/AST/CommentHTMLTagsProperties.inc new file mode 100644 index 0000000..77af956 --- /dev/null +++ b/lib/clang/include/clang/AST/CommentHTMLTagsProperties.inc @@ -0,0 +1,2 @@ +/* $FreeBSD$ */ +#include "CommentHTMLTagsProperties.inc.h" diff --git a/lib/clang/include/clang/Basic/Version.inc b/lib/clang/include/clang/Basic/Version.inc index d04836e..84a96a6 100644 --- a/lib/clang/include/clang/Basic/Version.inc +++ b/lib/clang/include/clang/Basic/Version.inc @@ -5,6 +5,6 @@ #define CLANG_VERSION_MINOR 2 #define CLANG_VENDOR "FreeBSD " -#define CLANG_VENDOR_SUFFIX " 20120817" +#define CLANG_VENDOR_SUFFIX " 20121221" -#define SVN_REVISION "162107" +#define SVN_REVISION "170710" diff --git a/lib/clang/include/llvm/Config/config.h b/lib/clang/include/llvm/Config/config.h index 15d7e2d..1894727 100644 --- a/lib/clang/include/llvm/Config/config.h +++ b/lib/clang/include/llvm/Config/config.h @@ -8,6 +8,9 @@ /* Bug report URL. */ #define BUG_REPORT_URL "http://llvm.org/bugs/" +/* Define if we have libxml2 */ +/* #undef CLANG_HAVE_LIBXML */ + /* Relative directory for resource files */ #define CLANG_RESOURCE_DIR "" @@ -17,6 +20,9 @@ /* Default <path> to all compiler invocations for --sysroot=<path>. */ /* #undef DEFAULT_SYSROOT */ +/* Define if you want backtraces on crash */ +#define ENABLE_BACKTRACES 1 + /* Define if position independent code is enabled */ #define ENABLE_PIC 0 diff --git a/lib/clang/libclanganalysis/Makefile b/lib/clang/libclanganalysis/Makefile index d96f5dc..76bf1e5 100644 --- a/lib/clang/libclanganalysis/Makefile +++ b/lib/clang/libclanganalysis/Makefile @@ -1,17 +1,21 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clanganalysis SRCDIR= tools/clang/lib/Analysis SRCS= AnalysisDeclContext.cpp \ - CallGraph.cpp \ + BodyFarm.cpp \ CFG.cpp \ CFGReachabilityAnalysis.cpp \ CFGStmtMap.cpp \ + CallGraph.cpp \ CocoaConventions.cpp \ Dominators.cpp \ FormatString.cpp \ LiveVariables.cpp \ + ObjCNoReturn.cpp \ PostOrderCFGView.cpp \ PrintfFormatString.cpp \ ProgramPoint.cpp \ diff --git a/lib/clang/libclangarcmigrate/Makefile b/lib/clang/libclangarcmigrate/Makefile index 6544805..7597e9c 100644 --- a/lib/clang/libclangarcmigrate/Makefile +++ b/lib/clang/libclangarcmigrate/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clangarcmigrate SRCDIR= tools/clang/lib/ARCMigrate diff --git a/lib/clang/libclangast/Makefile b/lib/clang/libclangast/Makefile index a80bc7e..0ddeb53 100644 --- a/lib/clang/libclangast/Makefile +++ b/lib/clang/libclangast/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clangast SRCDIR= tools/clang/lib/AST @@ -63,6 +65,9 @@ SRCS= APValue.cpp \ TGHDRS= AttrImpl \ AttrList \ Attrs \ + CommentCommandInfo \ + CommentHTMLTags \ + CommentHTMLTagsProperties \ CommentNodes \ DeclNodes \ DiagnosticASTKinds \ diff --git a/lib/clang/libclangbasic/Makefile b/lib/clang/libclangbasic/Makefile index f0efd74..eec941a 100644 --- a/lib/clang/libclangbasic/Makefile +++ b/lib/clang/libclangbasic/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clangbasic SRCDIR= tools/clang/lib/Basic diff --git a/lib/clang/libclangcodegen/Makefile b/lib/clang/libclangcodegen/Makefile index 5252e7c..7aefa7c 100644 --- a/lib/clang/libclangcodegen/Makefile +++ b/lib/clang/libclangcodegen/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clangcodegen SRCDIR= tools/clang/lib/CodeGen diff --git a/lib/clang/libclangdriver/Makefile b/lib/clang/libclangdriver/Makefile index 4950cfa..aae2a05 100644 --- a/lib/clang/libclangdriver/Makefile +++ b/lib/clang/libclangdriver/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clangdriver SRCDIR= tools/clang/lib/Driver diff --git a/lib/clang/libclangedit/Makefile b/lib/clang/libclangedit/Makefile index a0e45a9..59b0b54 100644 --- a/lib/clang/libclangedit/Makefile +++ b/lib/clang/libclangedit/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clangedit SRCDIR= tools/clang/lib/Edit diff --git a/lib/clang/libclangfrontend/Makefile b/lib/clang/libclangfrontend/Makefile index c2813b4..44ba2fb 100644 --- a/lib/clang/libclangfrontend/Makefile +++ b/lib/clang/libclangfrontend/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clangfrontend SRCDIR= tools/clang/lib/Frontend diff --git a/lib/clang/libclangfrontendtool/Makefile b/lib/clang/libclangfrontendtool/Makefile index f37979f..f20aa35 100644 --- a/lib/clang/libclangfrontendtool/Makefile +++ b/lib/clang/libclangfrontendtool/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clangfrontendtool SRCDIR= tools/clang/lib/FrontendTool diff --git a/lib/clang/libclanglex/Makefile b/lib/clang/libclanglex/Makefile index 3ad0e3f..768d43c 100644 --- a/lib/clang/libclanglex/Makefile +++ b/lib/clang/libclanglex/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clanglex SRCDIR= tools/clang/lib/Lex diff --git a/lib/clang/libclangparse/Makefile b/lib/clang/libclangparse/Makefile index 599a034..dbe9adb 100644 --- a/lib/clang/libclangparse/Makefile +++ b/lib/clang/libclangparse/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clangparse SRCDIR= tools/clang/lib/Parse diff --git a/lib/clang/libclangrewrite/Makefile.depend b/lib/clang/libclangrewrite/Makefile.depend deleted file mode 100644 index ea0e441..0000000 --- a/lib/clang/libclangrewrite/Makefile.depend +++ /dev/null @@ -1,79 +0,0 @@ -# Autogenerated - do NOT edit! - -DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,} - -DEP_MACHINE := ${.PARSEFILE:E} - -DIRDEPS = \ - include \ - include/xlocale \ - lib/msun \ - - -.include <dirdeps.mk> - -.if ${DEP_RELDIR} == ${_DEP_RELDIR} -# local dependencies - needed for -jN in clean tree -FixItRewriter.o: DiagnosticCommonKinds.inc.h -FixItRewriter.o: DiagnosticFrontendKinds.inc.h -FixItRewriter.po: DiagnosticCommonKinds.inc.h -FixItRewriter.po: DiagnosticFrontendKinds.inc.h -FrontendActions.o: AttrList.inc.h -FrontendActions.o: AttrParsedAttrList.inc.h -FrontendActions.o: Attrs.inc.h -FrontendActions.o: DeclNodes.inc.h -FrontendActions.o: DiagnosticCommonKinds.inc.h -FrontendActions.o: DiagnosticFrontendKinds.inc.h -FrontendActions.o: StmtNodes.inc.h -FrontendActions.po: AttrList.inc.h -FrontendActions.po: AttrParsedAttrList.inc.h -FrontendActions.po: Attrs.inc.h -FrontendActions.po: DeclNodes.inc.h -FrontendActions.po: DiagnosticCommonKinds.inc.h -FrontendActions.po: DiagnosticFrontendKinds.inc.h -FrontendActions.po: StmtNodes.inc.h -HTMLPrint.o: AttrList.inc.h -HTMLPrint.o: Attrs.inc.h -HTMLPrint.o: DeclNodes.inc.h -HTMLPrint.o: DiagnosticCommonKinds.inc.h -HTMLPrint.po: AttrList.inc.h -HTMLPrint.po: Attrs.inc.h -HTMLPrint.po: DeclNodes.inc.h -HTMLPrint.po: DiagnosticCommonKinds.inc.h -HTMLRewrite.o: DiagnosticCommonKinds.inc.h -HTMLRewrite.po: DiagnosticCommonKinds.inc.h -RewriteMacros.o: DiagnosticCommonKinds.inc.h -RewriteMacros.po: DiagnosticCommonKinds.inc.h -RewriteModernObjC.o: AttrList.inc.h -RewriteModernObjC.o: Attrs.inc.h -RewriteModernObjC.o: DeclNodes.inc.h -RewriteModernObjC.o: DiagnosticCommonKinds.inc.h -RewriteModernObjC.o: StmtNodes.inc.h -RewriteModernObjC.po: AttrList.inc.h -RewriteModernObjC.po: Attrs.inc.h -RewriteModernObjC.po: DeclNodes.inc.h -RewriteModernObjC.po: DiagnosticCommonKinds.inc.h -RewriteModernObjC.po: StmtNodes.inc.h -RewriteObjC.o: AttrList.inc.h -RewriteObjC.o: Attrs.inc.h -RewriteObjC.o: DeclNodes.inc.h -RewriteObjC.o: DiagnosticCommonKinds.inc.h -RewriteObjC.o: StmtNodes.inc.h -RewriteObjC.po: AttrList.inc.h -RewriteObjC.po: Attrs.inc.h -RewriteObjC.po: DeclNodes.inc.h -RewriteObjC.po: DiagnosticCommonKinds.inc.h -RewriteObjC.po: StmtNodes.inc.h -RewriteTest.o: DiagnosticCommonKinds.inc.h -RewriteTest.po: DiagnosticCommonKinds.inc.h -Rewriter.o: AttrList.inc.h -Rewriter.o: Attrs.inc.h -Rewriter.o: DeclNodes.inc.h -Rewriter.o: DiagnosticCommonKinds.inc.h -Rewriter.o: StmtNodes.inc.h -Rewriter.po: AttrList.inc.h -Rewriter.po: Attrs.inc.h -Rewriter.po: DeclNodes.inc.h -Rewriter.po: DiagnosticCommonKinds.inc.h -Rewriter.po: StmtNodes.inc.h -.endif diff --git a/lib/clang/libclangrewritecore/Makefile b/lib/clang/libclangrewritecore/Makefile new file mode 100644 index 0000000..80115ee --- /dev/null +++ b/lib/clang/libclangrewritecore/Makefile @@ -0,0 +1,20 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +LIB= clangrewritecore + +SRCDIR= tools/clang/lib/Rewrite/Core +SRCS= DeltaTree.cpp \ + HTMLRewrite.cpp \ + RewriteRope.cpp \ + Rewriter.cpp \ + TokenRewriter.cpp + +TGHDRS= AttrList \ + Attrs \ + DeclNodes \ + DiagnosticCommonKinds \ + StmtNodes + +.include "../clang.lib.mk" diff --git a/lib/clang/libclangrewrite/Makefile b/lib/clang/libclangrewritefrontend/Makefile index e165b0b..ffa11b4 100644 --- a/lib/clang/libclangrewrite/Makefile +++ b/lib/clang/libclangrewritefrontend/Makefile @@ -1,26 +1,22 @@ # $FreeBSD$ -LIB= clangrewrite +.include <bsd.own.mk> -SRCDIR= tools/clang/lib/Rewrite -SRCS= DeltaTree.cpp \ - FixItRewriter.cpp \ +LIB= clangrewritefrontend + +SRCDIR= tools/clang/lib/Rewrite/Frontend +SRCS= FixItRewriter.cpp \ FrontendActions.cpp \ HTMLPrint.cpp \ - HTMLRewrite.cpp \ InclusionRewriter.cpp \ RewriteMacros.cpp \ RewriteModernObjC.cpp \ RewriteObjC.cpp \ - RewriteRope.cpp \ - RewriteTest.cpp \ - Rewriter.cpp \ - TokenRewriter.cpp + RewriteTest.cpp TGHDRS= AttrList \ AttrParsedAttrList \ Attrs \ - CommentNodes \ DeclNodes \ DiagnosticCommonKinds \ DiagnosticFrontendKinds \ diff --git a/lib/clang/libclangsema/Makefile b/lib/clang/libclangsema/Makefile index 83a1c56..9ced8b4 100644 --- a/lib/clang/libclangsema/Makefile +++ b/lib/clang/libclangsema/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clangsema SRCDIR= tools/clang/lib/Sema @@ -10,7 +12,9 @@ SRCS= AnalysisBasedWarnings.cpp \ DelayedDiagnostic.cpp \ IdentifierResolver.cpp \ JumpDiagnostics.cpp \ + MultiplexExternalSemaSource.cpp \ Scope.cpp \ + ScopeInfo.cpp \ Sema.cpp \ SemaAccess.cpp \ SemaAttr.cpp \ @@ -36,6 +40,7 @@ SRCS= AnalysisBasedWarnings.cpp \ SemaOverload.cpp \ SemaPseudoObject.cpp \ SemaStmt.cpp \ + SemaStmtAsm.cpp \ SemaStmtAttr.cpp \ SemaTemplate.cpp \ SemaTemplateDeduction.cpp \ diff --git a/lib/clang/libclangserialization/Makefile b/lib/clang/libclangserialization/Makefile index 75f68bf..962bbf0 100644 --- a/lib/clang/libclangserialization/Makefile +++ b/lib/clang/libclangserialization/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clangserialization SRCDIR= tools/clang/lib/Serialization diff --git a/lib/clang/libclangstaticanalyzercheckers/Makefile b/lib/clang/libclangstaticanalyzercheckers/Makefile index 1ad97b2..9536151 100644 --- a/lib/clang/libclangstaticanalyzercheckers/Makefile +++ b/lib/clang/libclangstaticanalyzercheckers/Makefile @@ -1,10 +1,11 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clangstaticanalyzercheckers SRCDIR= tools/clang/lib/StaticAnalyzer/Checkers -SRCS= AdjustedReturnValueChecker.cpp \ - AnalyzerStatsChecker.cpp \ +SRCS= AnalyzerStatsChecker.cpp \ ArrayBoundChecker.cpp \ ArrayBoundCheckerV2.cpp \ AttrNonNullChecker.cpp \ @@ -27,12 +28,14 @@ SRCS= AdjustedReturnValueChecker.cpp \ DeadStoresChecker.cpp \ DebugCheckers.cpp \ DereferenceChecker.cpp \ + DirectIvarAssignment.cpp \ DivZeroChecker.cpp \ DynamicTypePropagation.cpp \ ExprInspectionChecker.cpp \ FixedAddressChecker.cpp \ GenericTaintChecker.cpp \ IdempotentOperationChecker.cpp \ + IvarInvalidationChecker.cpp \ LLVMConventionsChecker.cpp \ MacOSKeychainAPIChecker.cpp \ MacOSXAPIChecker.cpp \ @@ -42,10 +45,10 @@ SRCS= AdjustedReturnValueChecker.cpp \ NSAutoreleasePoolChecker.cpp \ NSErrorChecker.cpp \ NoReturnFunctionChecker.cpp \ - OSAtomicChecker.cpp \ ObjCAtSyncChecker.cpp \ ObjCContainersASTChecker.cpp \ ObjCContainersChecker.cpp \ + ObjCMissingSuperCallChecker.cpp \ ObjCSelfInitChecker.cpp \ ObjCUnusedIVarsChecker.cpp \ PointerArithChecker.cpp \ @@ -54,6 +57,7 @@ SRCS= AdjustedReturnValueChecker.cpp \ RetainCountChecker.cpp \ ReturnPointerRangeChecker.cpp \ ReturnUndefChecker.cpp \ + SimpleStreamChecker.cpp \ StackAddrEscapeChecker.cpp \ StreamChecker.cpp \ TaintTesterChecker.cpp \ diff --git a/lib/clang/libclangstaticanalyzercore/Makefile b/lib/clang/libclangstaticanalyzercore/Makefile index 75b3d66..9c263f0 100644 --- a/lib/clang/libclangstaticanalyzercore/Makefile +++ b/lib/clang/libclangstaticanalyzercore/Makefile @@ -1,11 +1,13 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clangstaticanalyzercore SRCDIR= tools/clang/lib/StaticAnalyzer/Core -SRCS= AnalysisManager.cpp \ - APSIntType.cpp \ - BasicConstraintManager.cpp \ +SRCS= APSIntType.cpp \ + AnalysisManager.cpp \ + AnalyzerOptions.cpp \ BasicValueFactory.cpp \ BlockCounter.cpp \ BugReporter.cpp \ @@ -16,6 +18,7 @@ SRCS= AnalysisManager.cpp \ CheckerHelpers.cpp \ CheckerManager.cpp \ CheckerRegistry.cpp \ + ConstraintManager.cpp \ CoreEngine.cpp \ Environment.cpp \ ExplodedGraph.cpp \ diff --git a/lib/clang/libclangstaticanalyzerfrontend/Makefile b/lib/clang/libclangstaticanalyzerfrontend/Makefile index 5c7cd41..9e19f92 100644 --- a/lib/clang/libclangstaticanalyzerfrontend/Makefile +++ b/lib/clang/libclangstaticanalyzerfrontend/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= clangstaticanalyzerfrontend SRCDIR= tools/clang/lib/StaticAnalyzer/Frontend diff --git a/lib/clang/libllvmanalysis/Makefile b/lib/clang/libllvmanalysis/Makefile index cb1e345..3c01352 100644 --- a/lib/clang/libllvmanalysis/Makefile +++ b/lib/clang/libllvmanalysis/Makefile @@ -18,7 +18,9 @@ SRCS= AliasAnalysis.cpp \ CaptureTracking.cpp \ CodeMetrics.cpp \ ConstantFolding.cpp \ + CostModel.cpp \ DbgInfoPrinter.cpp \ + DependenceAnalysis.cpp \ DomPrinter.cpp \ DominanceFrontier.cpp \ IVUsers.cpp \ @@ -32,7 +34,6 @@ SRCS= AliasAnalysis.cpp \ LibCallSemantics.cpp \ Lint.cpp \ Loads.cpp \ - LoopDependenceAnalysis.cpp \ LoopInfo.cpp \ LoopPass.cpp \ MemDepPrinter.cpp \ @@ -50,6 +51,8 @@ SRCS= AliasAnalysis.cpp \ ProfileInfoLoader.cpp \ ProfileInfoLoaderPass.cpp \ ProfileVerifierPass.cpp \ + ProfileDataLoader.cpp \ + ProfileDataLoaderPass.cpp \ RegionInfo.cpp \ RegionPass.cpp \ RegionPrinter.cpp \ diff --git a/lib/clang/libllvmarchive/Makefile b/lib/clang/libllvmarchive/Makefile index a28f2f5..d553405 100644 --- a/lib/clang/libllvmarchive/Makefile +++ b/lib/clang/libllvmarchive/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmarchive SRCDIR= lib/Archive diff --git a/lib/clang/libllvmarmasmparser/Makefile b/lib/clang/libllvmarmasmparser/Makefile index c3d0d89..05e6263 100644 --- a/lib/clang/libllvmarmasmparser/Makefile +++ b/lib/clang/libllvmarmasmparser/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmarmasmparser SRCDIR= lib/Target/ARM/AsmParser diff --git a/lib/clang/libllvmarmcodegen/Makefile b/lib/clang/libllvmarmcodegen/Makefile index b18f12c..6a10eaf 100644 --- a/lib/clang/libllvmarmcodegen/Makefile +++ b/lib/clang/libllvmarmcodegen/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmarmcodegen SRCDIR= lib/Target/ARM @@ -9,7 +11,6 @@ SRCS= ARMAsmPrinter.cpp \ ARMCodeEmitter.cpp \ ARMConstantIslandPass.cpp \ ARMConstantPoolValue.cpp \ - ARMELFWriterInfo.cpp \ ARMExpandPseudoInsts.cpp \ ARMFastISel.cpp \ ARMFrameLowering.cpp \ diff --git a/lib/clang/libllvmarmdesc/Makefile b/lib/clang/libllvmarmdesc/Makefile index bd2e0cb..61679a6 100644 --- a/lib/clang/libllvmarmdesc/Makefile +++ b/lib/clang/libllvmarmdesc/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmarmdesc SRCDIR= lib/Target/ARM/MCTargetDesc diff --git a/lib/clang/libllvmarmdisassembler/Makefile b/lib/clang/libllvmarmdisassembler/Makefile index a3d16f7..eb46736 100644 --- a/lib/clang/libllvmarmdisassembler/Makefile +++ b/lib/clang/libllvmarmdisassembler/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmarmdisassembler SRCDIR= lib/Target/ARM/Disassembler diff --git a/lib/clang/libllvmarminfo/Makefile b/lib/clang/libllvmarminfo/Makefile index ec88367..1da434c 100644 --- a/lib/clang/libllvmarminfo/Makefile +++ b/lib/clang/libllvmarminfo/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmarminfo SRCDIR= lib/Target/ARM/TargetInfo diff --git a/lib/clang/libllvmarminstprinter/Makefile b/lib/clang/libllvmarminstprinter/Makefile index ca7e7d4..67b8fee 100644 --- a/lib/clang/libllvmarminstprinter/Makefile +++ b/lib/clang/libllvmarminstprinter/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmarminstprinter SRCDIR= lib/Target/ARM/InstPrinter diff --git a/lib/clang/libllvmasmparser/Makefile b/lib/clang/libllvmasmparser/Makefile index 8ceba69..bb8f0df 100644 --- a/lib/clang/libllvmasmparser/Makefile +++ b/lib/clang/libllvmasmparser/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmasmparser SRCDIR= lib/AsmParser diff --git a/lib/clang/libllvmasmprinter/Makefile b/lib/clang/libllvmasmprinter/Makefile index 36e626f..97bc73d3 100644 --- a/lib/clang/libllvmasmprinter/Makefile +++ b/lib/clang/libllvmasmprinter/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmasmprinter SRCDIR= lib/CodeGen/AsmPrinter diff --git a/lib/clang/libllvmbitreader/Makefile b/lib/clang/libllvmbitreader/Makefile index c426680..094e0e7 100644 --- a/lib/clang/libllvmbitreader/Makefile +++ b/lib/clang/libllvmbitreader/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmbitreader SRCDIR= lib/Bitcode/Reader diff --git a/lib/clang/libllvmbitwriter/Makefile b/lib/clang/libllvmbitwriter/Makefile index 3431b21..1cb9d41 100644 --- a/lib/clang/libllvmbitwriter/Makefile +++ b/lib/clang/libllvmbitwriter/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmbitwriter SRCDIR= lib/Bitcode/Writer diff --git a/lib/clang/libllvmcodegen/Makefile b/lib/clang/libllvmcodegen/Makefile index a0db98f..e65d19c 100644 --- a/lib/clang/libllvmcodegen/Makefile +++ b/lib/clang/libllvmcodegen/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmcodegen SRCDIR= lib/CodeGen @@ -12,8 +14,8 @@ SRCS= AggressiveAntiDepBreaker.cpp \ CodeGen.cpp \ CodePlacementOpt.cpp \ CriticalAntiDepBreaker.cpp \ - DeadMachineInstructionElim.cpp \ DFAPacketizer.cpp \ + DeadMachineInstructionElim.cpp \ DwarfEHPrepare.cpp \ EarlyIfConversion.cpp \ EdgeBundles.cpp \ @@ -35,19 +37,19 @@ SRCS= AggressiveAntiDepBreaker.cpp \ LiveInterval.cpp \ LiveIntervalAnalysis.cpp \ LiveIntervalUnion.cpp \ + LiveRangeCalc.cpp \ + LiveRangeEdit.cpp \ LiveRegMatrix.cpp \ LiveStackAnalysis.cpp \ LiveVariables.cpp \ - LiveRangeCalc.cpp \ - LiveRangeEdit.cpp \ LocalStackSlotAllocation.cpp \ MachineBasicBlock.cpp \ MachineBlockFrequencyInfo.cpp \ MachineBlockPlacement.cpp \ MachineBranchProbabilityInfo.cpp \ + MachineCSE.cpp \ MachineCodeEmitter.cpp \ MachineCopyPropagation.cpp \ - MachineCSE.cpp \ MachineDominators.cpp \ MachineFunction.cpp \ MachineFunctionAnalysis.cpp \ @@ -61,6 +63,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \ MachineModuleInfo.cpp \ MachineModuleInfoImpls.cpp \ MachinePassRegistry.cpp \ + MachinePostDominators.cpp \ MachineRegisterInfo.cpp \ MachineSSAUpdater.cpp \ MachineScheduler.cpp \ @@ -94,9 +97,10 @@ SRCS= AggressiveAntiDepBreaker.cpp \ ShrinkWrapping.cpp \ SjLjEHPrepare.cpp \ SlotIndexes.cpp \ - Spiller.cpp \ SpillPlacement.cpp \ + Spiller.cpp \ SplitKit.cpp \ + StackColoring.cpp \ StackProtector.cpp \ StackSlotColoring.cpp \ StrongPHIElimination.cpp \ @@ -105,6 +109,7 @@ SRCS= AggressiveAntiDepBreaker.cpp \ TargetInstrInfoImpl.cpp \ TargetLoweringObjectFileImpl.cpp \ TargetOptionsImpl.cpp \ + TargetSchedule.cpp \ TwoAddressInstructionPass.cpp \ UnreachableBlockElim.cpp \ VirtRegMap.cpp diff --git a/lib/clang/libllvmcore/Makefile b/lib/clang/libllvmcore/Makefile index 8de6731..d2010c0 100644 --- a/lib/clang/libllvmcore/Makefile +++ b/lib/clang/libllvmcore/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmcore SRCDIR= lib/VMCore @@ -11,10 +13,12 @@ SRCS= AsmWriter.cpp \ Constants.cpp \ Core.cpp \ DIBuilder.cpp \ + DataLayout.cpp \ DebugInfo.cpp \ DebugLoc.cpp \ Dominators.cpp \ Function.cpp \ + GCOV.cpp \ GVMaterializer.cpp \ Globals.cpp \ IRBuilder.cpp \ @@ -33,6 +37,7 @@ SRCS= AsmWriter.cpp \ PrintModulePass.cpp \ Type.cpp \ TypeFinder.cpp \ + TargetTransformInfo.cpp \ Use.cpp \ User.cpp \ Value.cpp \ diff --git a/lib/clang/libllvmdebuginfo/Makefile b/lib/clang/libllvmdebuginfo/Makefile index b724157..757b909 100644 --- a/lib/clang/libllvmdebuginfo/Makefile +++ b/lib/clang/libllvmdebuginfo/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmdebuginfo SRCDIR= lib/DebugInfo @@ -12,6 +14,7 @@ SRCS= DIContext.cpp \ DWARFDebugAranges.cpp \ DWARFDebugInfoEntry.cpp \ DWARFDebugLine.cpp \ + DWARFDebugRangeList.cpp \ DWARFFormValue.cpp .include "../clang.lib.mk" diff --git a/lib/clang/libllvmexecutionengine/Makefile b/lib/clang/libllvmexecutionengine/Makefile index c0dde71..3ec39c7 100644 --- a/lib/clang/libllvmexecutionengine/Makefile +++ b/lib/clang/libllvmexecutionengine/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmexecutionengine SRCDIR= lib/ExecutionEngine diff --git a/lib/clang/libllvminstcombine/Makefile b/lib/clang/libllvminstcombine/Makefile index e989fa5..3752aef 100644 --- a/lib/clang/libllvminstcombine/Makefile +++ b/lib/clang/libllvminstcombine/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvminstcombine SRCDIR= lib/Transforms/InstCombine diff --git a/lib/clang/libllvminstrumentation/Makefile b/lib/clang/libllvminstrumentation/Makefile index 8e7e7a2..6d666e5 100644 --- a/lib/clang/libllvminstrumentation/Makefile +++ b/lib/clang/libllvminstrumentation/Makefile @@ -1,12 +1,14 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvminstrumentation SRCDIR= lib/Transforms/Instrumentation SRCS= AddressSanitizer.cpp \ + BlackList.cpp \ BoundsChecking.cpp \ EdgeProfiling.cpp \ - FunctionBlackList.cpp \ GCOVProfiling.cpp \ Instrumentation.cpp \ OptimalEdgeProfiling.cpp \ diff --git a/lib/clang/libllvminterpreter/Makefile b/lib/clang/libllvminterpreter/Makefile index 6a1b453..06fcca4 100644 --- a/lib/clang/libllvminterpreter/Makefile +++ b/lib/clang/libllvminterpreter/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvminterpreter SRCDIR= lib/ExecutionEngine/Interpreter diff --git a/lib/clang/libllvmipo/Makefile b/lib/clang/libllvmipo/Makefile index a493532..b1e9016 100644 --- a/lib/clang/libllvmipo/Makefile +++ b/lib/clang/libllvmipo/Makefile @@ -6,6 +6,7 @@ LIB= llvmipo SRCDIR= lib/Transforms/IPO SRCS= ArgumentPromotion.cpp \ + BarrierNoopPass.cpp \ ConstantMerge.cpp \ DeadArgumentElimination.cpp \ ExtractGV.cpp \ diff --git a/lib/clang/libllvmjit/Makefile b/lib/clang/libllvmjit/Makefile index ff852d5..682f704 100644 --- a/lib/clang/libllvmjit/Makefile +++ b/lib/clang/libllvmjit/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmjit SRCDIR= lib/ExecutionEngine/JIT diff --git a/lib/clang/libllvmlinker/Makefile b/lib/clang/libllvmlinker/Makefile index 73f153b..7275131 100644 --- a/lib/clang/libllvmlinker/Makefile +++ b/lib/clang/libllvmlinker/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmlinker SRCDIR= lib/Linker diff --git a/lib/clang/libllvmmcdisassembler/Makefile b/lib/clang/libllvmmcdisassembler/Makefile index dc5f294..94aff3e 100644 --- a/lib/clang/libllvmmcdisassembler/Makefile +++ b/lib/clang/libllvmmcdisassembler/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmmcdisassembler SRCDIR= lib/MC/MCDisassembler diff --git a/lib/clang/libllvmmcjit/Makefile b/lib/clang/libllvmmcjit/Makefile index 553186f..207fd81 100644 --- a/lib/clang/libllvmmcjit/Makefile +++ b/lib/clang/libllvmmcjit/Makefile @@ -7,8 +7,4 @@ LIB= llvmmcjit SRCDIR= lib/ExecutionEngine/MCJIT SRCS= MCJIT.cpp -.if ${MK_CLANG_EXTRAS} != "no" -SRCS+= MCJITMemoryManager.cpp -.endif - .include "../clang.lib.mk" diff --git a/lib/clang/libllvmmcparser/Makefile b/lib/clang/libllvmmcparser/Makefile index 48deadf..b39926a 100644 --- a/lib/clang/libllvmmcparser/Makefile +++ b/lib/clang/libllvmmcparser/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmmcparser SRCDIR= lib/MC/MCParser diff --git a/lib/clang/libllvmmipsasmparser/Makefile b/lib/clang/libllvmmipsasmparser/Makefile index dd95394..0572f8d 100644 --- a/lib/clang/libllvmmipsasmparser/Makefile +++ b/lib/clang/libllvmmipsasmparser/Makefile @@ -1,12 +1,15 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmmipsasmparser SRCDIR= lib/Target/Mips/AsmParser INCDIR= lib/Target/Mips SRCS= MipsAsmParser.cpp -TGHDRS= MipsGenInstrInfo \ +TGHDRS= MipsGenAsmMatcher \ + MipsGenInstrInfo \ MipsGenRegisterInfo \ MipsGenSubtargetInfo diff --git a/lib/clang/libllvmmipscodegen/Makefile b/lib/clang/libllvmmipscodegen/Makefile index ae7d2f6..7675a01 100644 --- a/lib/clang/libllvmmipscodegen/Makefile +++ b/lib/clang/libllvmmipscodegen/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmmipscodegen SRCDIR= lib/Target/Mips @@ -33,6 +35,7 @@ TGHDRS= Intrinsics \ MipsGenCodeEmitter \ MipsGenDAGISel \ MipsGenInstrInfo \ + MipsGenMCPseudoLowering \ MipsGenRegisterInfo \ MipsGenSubtargetInfo diff --git a/lib/clang/libllvmmipsdesc/Makefile b/lib/clang/libllvmmipsdesc/Makefile index 5c17588..4ddb646 100644 --- a/lib/clang/libllvmmipsdesc/Makefile +++ b/lib/clang/libllvmmipsdesc/Makefile @@ -1,9 +1,12 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmmipsdesc SRCDIR= lib/Target/Mips/MCTargetDesc SRCS= MipsAsmBackend.cpp \ + MipsDirectObjLower.cpp \ MipsELFObjectWriter.cpp \ MipsMCAsmInfo.cpp \ MipsMCCodeEmitter.cpp \ diff --git a/lib/clang/libllvmmipsdisassembler/Makefile b/lib/clang/libllvmmipsdisassembler/Makefile index 7cdd982..1c0a4b6 100644 --- a/lib/clang/libllvmmipsdisassembler/Makefile +++ b/lib/clang/libllvmmipsdisassembler/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmmipsdisassembler SRCDIR= lib/Target/Mips/Disassembler diff --git a/lib/clang/libllvmmipsinfo/Makefile b/lib/clang/libllvmmipsinfo/Makefile index c5b96cd..c65c8c8 100644 --- a/lib/clang/libllvmmipsinfo/Makefile +++ b/lib/clang/libllvmmipsinfo/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmmipsinfo SRCDIR= lib/Target/Mips/TargetInfo diff --git a/lib/clang/libllvmmipsinstprinter/Makefile b/lib/clang/libllvmmipsinstprinter/Makefile index 36d3b04..39df7cc 100644 --- a/lib/clang/libllvmmipsinstprinter/Makefile +++ b/lib/clang/libllvmmipsinstprinter/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmmipsinstprinter SRCDIR= lib/Target/Mips/InstPrinter diff --git a/lib/clang/libllvmobject/Makefile b/lib/clang/libllvmobject/Makefile index d056dc7..c8c8068 100644 --- a/lib/clang/libllvmobject/Makefile +++ b/lib/clang/libllvmobject/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmobject SRCDIR= lib/Object diff --git a/lib/clang/libllvmpowerpccodegen/Makefile b/lib/clang/libllvmpowerpccodegen/Makefile index a97c352..a09da59 100644 --- a/lib/clang/libllvmpowerpccodegen/Makefile +++ b/lib/clang/libllvmpowerpccodegen/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmpowerpccodegen SRCDIR= lib/Target/PowerPC diff --git a/lib/clang/libllvmpowerpcdesc/Makefile b/lib/clang/libllvmpowerpcdesc/Makefile index 2a5ef6e..e48b484 100644 --- a/lib/clang/libllvmpowerpcdesc/Makefile +++ b/lib/clang/libllvmpowerpcdesc/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmpowerpcdesc SRCDIR= lib/Target/PowerPC/MCTargetDesc diff --git a/lib/clang/libllvmpowerpcinfo/Makefile b/lib/clang/libllvmpowerpcinfo/Makefile index 8310378..03bba0e 100644 --- a/lib/clang/libllvmpowerpcinfo/Makefile +++ b/lib/clang/libllvmpowerpcinfo/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmpowerpcinfo SRCDIR= lib/Target/PowerPC/TargetInfo diff --git a/lib/clang/libllvmpowerpcinstprinter/Makefile b/lib/clang/libllvmpowerpcinstprinter/Makefile index c1528ae..ac98321 100644 --- a/lib/clang/libllvmpowerpcinstprinter/Makefile +++ b/lib/clang/libllvmpowerpcinstprinter/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmpowerpcinstprinter SRCDIR= lib/Target/PowerPC/InstPrinter diff --git a/lib/clang/libllvmruntimedyld/Makefile b/lib/clang/libllvmruntimedyld/Makefile index d5d5447..02ca4bd 100644 --- a/lib/clang/libllvmruntimedyld/Makefile +++ b/lib/clang/libllvmruntimedyld/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmruntimedyld SRCDIR= lib/ExecutionEngine/RuntimeDyld diff --git a/lib/clang/libllvmscalaropts/Makefile b/lib/clang/libllvmscalaropts/Makefile index f89b0a2..87eaf23 100644 --- a/lib/clang/libllvmscalaropts/Makefile +++ b/lib/clang/libllvmscalaropts/Makefile @@ -20,6 +20,7 @@ SRCS= ADCE.cpp \ LICM.cpp \ LoopDeletion.cpp \ LoopIdiomRecognize.cpp \ + LoopInstSimplify.cpp \ LoopRotation.cpp \ LoopStrengthReduce.cpp \ LoopUnrollPass.cpp \ @@ -30,6 +31,8 @@ SRCS= ADCE.cpp \ Reassociate.cpp \ Reg2Mem.cpp \ SCCP.cpp \ + SROA.cpp \ + Scalar.cpp \ ScalarReplAggregates.cpp \ SimplifyCFGPass.cpp \ SimplifyLibCalls.cpp \ diff --git a/lib/clang/libllvmselectiondag/Makefile b/lib/clang/libllvmselectiondag/Makefile index e6950127..7543102 100644 --- a/lib/clang/libllvmselectiondag/Makefile +++ b/lib/clang/libllvmselectiondag/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmselectiondag SRCDIR= lib/CodeGen/SelectionDAG diff --git a/lib/clang/libllvmtablegen/Makefile b/lib/clang/libllvmtablegen/Makefile index 5ac6954..069cec0 100644 --- a/lib/clang/libllvmtablegen/Makefile +++ b/lib/clang/libllvmtablegen/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmtablegen SRCDIR= lib/TableGen @@ -7,7 +9,6 @@ SRCS= Error.cpp \ Main.cpp \ Record.cpp \ StringMatcher.cpp \ - TableGenAction.cpp \ TableGenBackend.cpp \ TGLexer.cpp \ TGParser.cpp diff --git a/lib/clang/libllvmtarget/Makefile b/lib/clang/libllvmtarget/Makefile index eaad17e..595d2cc 100644 --- a/lib/clang/libllvmtarget/Makefile +++ b/lib/clang/libllvmtarget/Makefile @@ -1,19 +1,21 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmtarget SRCDIR= lib/Target SRCS= Mangler.cpp \ Target.cpp \ - TargetData.cpp \ - TargetELFWriterInfo.cpp \ TargetInstrInfo.cpp \ TargetIntrinsicInfo.cpp \ TargetJITInfo.cpp \ TargetLibraryInfo.cpp \ TargetLoweringObjectFile.cpp \ TargetMachine.cpp \ + TargetMachineC.cpp \ TargetRegisterInfo.cpp \ - TargetSubtargetInfo.cpp + TargetSubtargetInfo.cpp \ + TargetTransformImpl.cpp .include "../clang.lib.mk" diff --git a/lib/clang/libllvmtransformutils/Makefile b/lib/clang/libllvmtransformutils/Makefile index f8afaec..0ed2624 100644 --- a/lib/clang/libllvmtransformutils/Makefile +++ b/lib/clang/libllvmtransformutils/Makefile @@ -9,6 +9,7 @@ SRCS= AddrModeMatcher.cpp \ BasicBlockUtils.cpp \ BreakCriticalEdges.cpp \ BuildLibCalls.cpp \ + BypassSlowDivision.cpp \ CloneFunction.cpp \ CloneModule.cpp \ CmpInstAnalysis.cpp \ @@ -16,6 +17,7 @@ SRCS= AddrModeMatcher.cpp \ DemoteRegToStack.cpp \ InlineFunction.cpp \ InstructionNamer.cpp \ + IntegerDivision.cpp \ LCSSA.cpp \ Local.cpp \ LoopSimplify.cpp \ @@ -25,18 +27,19 @@ SRCS= AddrModeMatcher.cpp \ LowerInvoke.cpp \ LowerSwitch.cpp \ Mem2Reg.cpp \ + MetaRenamer.cpp \ ModuleUtils.cpp \ PromoteMemoryToRegister.cpp \ SSAUpdater.cpp \ SimplifyCFG.cpp \ SimplifyIndVar.cpp \ SimplifyInstructions.cpp \ + SimplifyLibCalls.cpp \ UnifyFunctionExitNodes.cpp \ ValueMapper.cpp .if ${MK_CLANG_EXTRAS} != "no" -SRCS+= SimplifyInstructions.cpp \ - Utils.cpp +SRCS+= Utils.cpp .endif TGHDRS= Intrinsics diff --git a/lib/clang/libllvmvectorize/Makefile b/lib/clang/libllvmvectorize/Makefile index 61a37b5..d0f5b73 100644 --- a/lib/clang/libllvmvectorize/Makefile +++ b/lib/clang/libllvmvectorize/Makefile @@ -1,9 +1,12 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmvectorize SRCDIR= lib/Transforms/Vectorize SRCS= BBVectorize.cpp \ + LoopVectorize.cpp \ Vectorize.cpp TGHDRS= Intrinsics diff --git a/lib/clang/libllvmx86asmparser/Makefile b/lib/clang/libllvmx86asmparser/Makefile index c140268..252b2d0 100644 --- a/lib/clang/libllvmx86asmparser/Makefile +++ b/lib/clang/libllvmx86asmparser/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmx86asmparser SRCDIR= lib/Target/X86/AsmParser diff --git a/lib/clang/libllvmx86codegen/Makefile b/lib/clang/libllvmx86codegen/Makefile index a61cad9..939b257 100644 --- a/lib/clang/libllvmx86codegen/Makefile +++ b/lib/clang/libllvmx86codegen/Makefile @@ -1,12 +1,13 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmx86codegen SRCDIR= lib/Target/X86 SRCS= X86AsmPrinter.cpp \ X86COFFMachineModuleInfo.cpp \ X86CodeEmitter.cpp \ - X86ELFWriterInfo.cpp \ X86FastISel.cpp \ X86FloatingPoint.cpp \ X86FrameLowering.cpp \ diff --git a/lib/clang/libllvmx86desc/Makefile b/lib/clang/libllvmx86desc/Makefile index 3d2a9dd..a177129 100644 --- a/lib/clang/libllvmx86desc/Makefile +++ b/lib/clang/libllvmx86desc/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmx86desc SRCDIR= lib/Target/X86/MCTargetDesc diff --git a/lib/clang/libllvmx86info/Makefile b/lib/clang/libllvmx86info/Makefile index 85155a8..bc1a7d7 100644 --- a/lib/clang/libllvmx86info/Makefile +++ b/lib/clang/libllvmx86info/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmx86info SRCDIR= lib/Target/X86/TargetInfo diff --git a/lib/clang/libllvmx86instprinter/Makefile b/lib/clang/libllvmx86instprinter/Makefile index a44006c..308f91c 100644 --- a/lib/clang/libllvmx86instprinter/Makefile +++ b/lib/clang/libllvmx86instprinter/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmx86instprinter SRCDIR= lib/Target/X86/InstPrinter diff --git a/lib/clang/libllvmx86utils/Makefile b/lib/clang/libllvmx86utils/Makefile index bbed6b0..8355e7e 100644 --- a/lib/clang/libllvmx86utils/Makefile +++ b/lib/clang/libllvmx86utils/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.own.mk> + LIB= llvmx86utils SRCDIR= lib/Target/X86/Utils |