Update LLVM/Clang to r132395. This brings the usual set of improvements

and support for dependency tracking in tblgen. Use this to make updates
more robust.
This commit is contained in:
joerg 2011-06-01 14:13:41 +00:00
parent 423b7f5dbf
commit cd92498901
8 changed files with 24 additions and 20 deletions

View File

@ -1,12 +1,12 @@
# $NetBSD: Makefile.inc,v 1.9 2011/05/20 13:40:04 joerg Exp $
# $NetBSD: Makefile.inc,v 1.10 2011/06/01 14:13:41 joerg Exp $
.if !defined(LLVM_TOPLEVEL_MK)
LLVM_TOPLEVEL_MK=
.include <bsd.own.mk>
LLVM_REVISION= 131689
CLANG_REVISION= 131689
LLVM_REVISION= 132395
CLANG_REVISION= 132395
LLVM_SRCDIR:= ${.PARSEDIR}/dist/llvm
CLANG_SRCDIR:= ${.PARSEDIR}/dist/clang

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2011/05/16 19:27:48 joerg Exp $
# $NetBSD: Makefile,v 1.5 2011/06/01 14:13:42 joerg Exp $
LIB= LLVMAsmPrinter
@ -15,7 +15,8 @@ SRCS+= ARMException.cpp \
DwarfCompileUnit.cpp \
DwarfDebug.cpp \
DwarfException.cpp \
OcamlGCPrinter.cpp
OcamlGCPrinter.cpp \
Win64Exception.cpp
.if defined(HOSTLIB)
.include <bsd.hostlib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2011/05/19 21:06:02 joerg Exp $
# $NetBSD: Makefile,v 1.4 2011/06/01 14:13:42 joerg Exp $
LIB= LLVMCore
@ -33,7 +33,6 @@ SRCS+= AsmWriter.cpp \
PassManager.cpp \
PassRegistry.cpp \
PrintModulePass.cpp \
StandardPasses.cpp \
Type.cpp \
TypeSymbolTable.cpp \
Use.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2011/02/06 01:13:58 joerg Exp $
# $NetBSD: Makefile,v 1.2 2011/06/01 14:13:42 joerg Exp $
LIB= LLVMJIT
@ -14,7 +14,6 @@ SRCS+= Intercept.cpp \
JITDwarfEmitter.cpp \
JITEmitter.cpp \
JITMemoryManager.cpp \
OProfileJITEventListener.cpp \
TargetSelect.cpp
OProfileJITEventListener.cpp
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2011/03/18 23:32:03 joerg Exp $
# $NetBSD: Makefile,v 1.3 2011/06/01 14:13:42 joerg Exp $
LIB= LLVMMC
@ -37,6 +37,7 @@ SRCS+= ELFObjectWriter.cpp \
MCStreamer.cpp \
MCSymbol.cpp \
MCValue.cpp \
MCWin64EH.cpp \
MachObjectWriter.cpp \
WinCOFFStreamer.cpp \
WinCOFFObjectWriter.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2011/05/12 14:56:23 joerg Exp $
# $NetBSD: Makefile,v 1.3 2011/06/01 14:13:42 joerg Exp $
LIB= LLVMMCJIT
@ -7,7 +7,6 @@ LIB= LLVMMCJIT
.PATH: ${LLVM_SRCDIR}/lib/ExecutionEngine/MCJIT
SRCS+= Intercept.cpp \
MCJIT.cpp \
TargetSelect.cpp
MCJIT.cpp
.include <bsd.lib.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2011/05/12 14:56:24 joerg Exp $
# $NetBSD: Makefile,v 1.2 2011/06/01 14:13:42 joerg Exp $
LIB= clangTooling
@ -6,7 +6,8 @@ LIB= clangTooling
.PATH: ${CLANG_SRCDIR}/lib/Tooling
SRCS+= JsonCompileCommandLineDatabase.cpp \
SRCS+= ASTMatcher.cpp \
JsonCompileCommandLineDatabase.cpp \
Tooling.cpp
.if defined(HOSTLIB)

View File

@ -1,15 +1,19 @@
# $NetBSD: tablegen.mk,v 1.1 2011/02/06 01:13:43 joerg Exp $
# $NetBSD: tablegen.mk,v 1.2 2011/06/01 14:13:41 joerg Exp $
.include <bsd.own.mk>
.for t in ${TABLEGEN_SRC}
.for f in ${TABLEGEN_OUTPUT} ${TABLEGEN_OUTPUT.${t}}
${f:C,\|.*$,,}: ${t}
${f:C,\|.*$,,}: ${t} ${TOOL_TBLGEN}
[ -z "${f:C,\|.*$,,}" ] || mkdir -p ${f:C,\|.*$,,:H}
${TOOL_TBLGEN} -I${LLVM_SRCDIR}/include ${TABLEGEN_INCLUDES} \
${TABLEGEN_INCLUDES.${t}} ${f:C,^.*\|,,:C,\^, ,} \
${.ALLSRC:M*/${t}} > ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}
${.ALLSRC:M*/${t}} -d ${.TARGET}.d.tmp -o ${.TARGET}.tmp \
&& mv ${.TARGET}.tmp ${.TARGET} && \
mv ${.TARGET}.d.tmp ${.TARGET}.d
DPSRCS+= ${f:C,\|.*$,,}
CLEANFILES+= ${f:C,\|.*$,,}
CLEANFILES+= ${f:C,\|.*$,,} ${f:C,\|.*$,,:C,$,.d,}
.sinclude "${f:C,\|.*$,,:C,$,.d,}"
.endfor
.endfor