Update LLVM/Clang snapshot to r155677, bringing in a number of bugfixes.

This commit is contained in:
joerg 2012-04-29 19:19:04 +00:00
parent fc04895e7b
commit 346d105dac
15 changed files with 41 additions and 88 deletions

View File

@ -1,12 +1,12 @@
# $NetBSD: Makefile.inc,v 1.33 2012/04/14 15:11:17 joerg Exp $
# $NetBSD: Makefile.inc,v 1.34 2012/04/29 19:19:04 joerg Exp $
.if !defined(LLVM_TOPLEVEL_MK)
LLVM_TOPLEVEL_MK=
.include <bsd.own.mk>
LLVM_REVISION= 154578
CLANG_REVISION= 154578
LLVM_REVISION= 155677
CLANG_REVISION= 155677
LLVM_SRCDIR:= ${.PARSEDIR}/dist/llvm
CLANG_SRCDIR:= ${.PARSEDIR}/dist/clang

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2012/04/04 10:42:00 joerg Exp $
# $NetBSD: Makefile,v 1.5 2012/04/29 19:19:04 joerg Exp $
.include <bsd.own.mk>
@ -19,7 +19,6 @@ SUBDIR+= \
llvm-dis \
llvm-dwarfdump \
llvm-extract \
llvm-ld \
llvm-link \
llvm-mc \
llvm-nm \
@ -27,7 +26,6 @@ SUBDIR+= \
llvm-ranlib \
llvm-readobj \
llvm-size \
llvm-stub \
macho-dumpx \
opt
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.19 2012/04/04 10:42:00 joerg Exp $
# $NetBSD: Makefile,v 1.20 2012/04/29 19:19:04 joerg Exp $
PROG_CXX= clang
NOMAN= yes
@ -30,7 +30,6 @@ CLANG_LIBS+= \
clangParse \
clangSema \
clangAnalysis \
clangIndex \
clangRewrite \
clangAST \
clangLex \

View File

@ -1,32 +0,0 @@
# $NetBSD: Makefile,v 1.3 2012/04/04 10:42:01 joerg Exp $
PROG_CXX= llvm-ld
NOMAN= yes
.include <bsd.init.mk>
.PATH: ${LLVM_SRCDIR}/tools/llvm-ld
SRCS= Optimize.cpp \
llvm-ld.cpp
LLVM_LIBS+= \
Linker \
Archive \
AsmParser \
BitReader \
BitWriter \
InstCombine \
ipo \
Vectorize \
ScalarOpts \
TransformsUtils \
Analysis \
Target \
ipa \
Core \
Support
.include "${.PARSEDIR}/../../link.mk"
.include <bsd.prog.mk>

View File

@ -1,12 +0,0 @@
# $NetBSD: Makefile,v 1.1 2011/02/06 01:13:48 joerg Exp $
PROG= llvm-stub
NOMAN= yes
.include <bsd.init.mk>
.PATH: ${LLVM_SRCDIR}/tools/llvm-stub
SRCS= llvm-stub.c
.include <bsd.prog.mk>

View File

@ -16,4 +16,7 @@
/* Directories clang will search for headers */
#define C_INCLUDE_DIRS "/usr/include/clang-3.0:/usr/include"
/* Default <path> to all compiler invocations for --sysroot=<path>. */
#define DEFAULT_SYSROOT ""
#endif

View File

@ -13,8 +13,8 @@
/* Directories clang will search for headers */
#define C_INCLUDE_DIRS "/usr/include/clang-3.0:/usr/include"
/* Define if CBE is enabled for printf %a output */
#define ENABLE_CBE_PRINTF_A 1
/* Default <path> to all compiler invocations for --sysroot=<path>. */
#define DEFAULT_SYSROOT ""
/* Define if position independent code is enabled */
#define ENABLE_PIC 1

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.21 2012/04/14 15:11:18 joerg Exp $
# $NetBSD: Makefile,v 1.22 2012/04/29 19:19:05 joerg Exp $
.include <bsd.own.mk>
@ -90,7 +90,6 @@ SUBDIR+= \
libclangEdit \
libclangFrontend \
libclangFrontendTool \
libclangIndex \
libclangLex \
libclangParse \
libclangRewrite \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 2012/04/04 10:42:02 joerg Exp $
# $NetBSD: Makefile,v 1.17 2012/04/29 19:19:05 joerg Exp $
LIB= LLVMCodeGen
@ -85,6 +85,7 @@ SRCS+= AggressiveAntiDepBreaker.cpp \
RegAllocPBQP.cpp \
RegisterClassInfo.cpp \
RegisterCoalescer.cpp \
RegisterPressure.cpp \
RegisterScavenging.cpp \
RenderMachineFunction.cpp \
ScheduleDAG.cpp \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2012/02/28 17:09:30 joerg Exp $
# $NetBSD: Makefile,v 1.9 2012/04/29 19:19:05 joerg Exp $
LIB= LLVMMipsCodeGen
@ -34,6 +34,8 @@ TABLEGEN_OUTPUT= \
MipsGenCallingConv.inc|-gen-callingconv \
MipsGenCodeEmitter.inc|-gen-emitter \
MipsGenDAGISel.inc|-gen-dag-isel \
MipsGenDisassemblerTables.inc|-gen-disassembler \
MipsGenEDInfo.inc|-gen-enhanced-disassembly-info \
MipsGenMCCodeEmitter.inc|-gen-emitter^-mc-emitter \
MipsGenSubtargetInfo.inc|-gen-subtarget

View File

@ -0,0 +1,18 @@
# $NetBSD: Makefile,v 1.1 2012/04/29 19:19:05 joerg Exp $
LIB= LLVMMipsDisassembler
.include <bsd.init.mk>
MIPS_OBJDIR!= cd ${.CURDIR}/../libLLVMMipsCodeGen && ${PRINTOBJDIR}
CPPFLAGS+= -I${MIPS_OBJDIR} -I${LLVM_SRCDIR}/lib/Target/Mips
.PATH: ${LLVM_SRCDIR}/lib/Target/Mips/Disassembler
SRCS+= MipsDisassembler.cpp
.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
.else
.include <bsd.lib.mk>
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2012/01/17 15:51:56 joerg Exp $
# $NetBSD: Makefile,v 1.4 2012/04/29 19:19:05 joerg Exp $
LIB= LLVMRuntimeDyld
@ -6,7 +6,8 @@ LIB= LLVMRuntimeDyld
.PATH: ${LLVM_SRCDIR}/lib/ExecutionEngine/RuntimeDyld
SRCS+= RuntimeDyld.cpp \
SRCS+= GDBRegistrar.cpp \
RuntimeDyld.cpp \
RuntimeDyldELF.cpp \
RuntimeDyldMachO.cpp

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2012/04/14 15:11:18 joerg Exp $
# $NetBSD: Makefile,v 1.12 2012/04/29 19:19:05 joerg Exp $
LIB= LLVMSupport
@ -35,7 +35,7 @@ SRCS+= APFloat.cpp \
IntrusiveRefCntPtr.cpp \
IsInf.cpp \
IsNAN.cpp \
JSONParser.cpp \
Locale.cpp \
LockFileManager.cpp \
ManagedStatic.cpp \
MemoryBuffer.cpp \

View File

@ -1,25 +0,0 @@
# $NetBSD: Makefile,v 1.2 2012/04/04 10:42:04 joerg Exp $
LIB= clangIndex
.include <bsd.init.mk>
.PATH: ${CLANG_SRCDIR}/lib/Index
SRCS+= ASTLocation.cpp \
Analyzer.cpp \
DeclReferenceMap.cpp \
Entity.cpp \
GlobalCallGraph.cpp \
GlobalSelector.cpp \
Handlers.cpp \
IndexProvider.cpp \
Indexer.cpp \
Program.cpp \
SelectorMap.cpp
.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
.else
.include <bsd.lib.mk>
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2012/02/28 17:09:31 joerg Exp $
# $NetBSD: Makefile,v 1.9 2012/04/29 19:19:06 joerg Exp $
LIB= clangSema
@ -39,6 +39,7 @@ SRCS+= AnalysisBasedWarnings.cpp \
SemaOverload.cpp \
SemaPseudoObject.cpp \
SemaStmt.cpp \
SemaStmtAttr.cpp \
SemaTemplate.cpp \
SemaTemplateDeduction.cpp \
SemaTemplateInstantiate.cpp \