diff options
Diffstat (limited to 'gnu/llvm/utils')
-rw-r--r-- | gnu/llvm/utils/FileCheck/Makefile | 21 | ||||
-rw-r--r-- | gnu/llvm/utils/Makefile | 19 | ||||
-rw-r--r-- | gnu/llvm/utils/Misc/mergefunctions.clang.svn.patch | 14 | ||||
-rw-r--r-- | gnu/llvm/utils/PerfectShuffle/Makefile | 18 | ||||
-rw-r--r-- | gnu/llvm/utils/TableGen/Makefile | 18 | ||||
-rw-r--r-- | gnu/llvm/utils/TableGen/module.modulemap | 4 | ||||
-rw-r--r-- | gnu/llvm/utils/buildit/GNUmakefile | 132 | ||||
-rwxr-xr-x | gnu/llvm/utils/buildit/build_llvm | 361 | ||||
-rw-r--r-- | gnu/llvm/utils/count/Makefile | 20 | ||||
-rw-r--r-- | gnu/llvm/utils/fpcmp/Makefile | 16 | ||||
-rw-r--r-- | gnu/llvm/utils/llvm-lit/Makefile | 27 | ||||
-rw-r--r-- | gnu/llvm/utils/llvm.natvis | 169 | ||||
-rw-r--r-- | gnu/llvm/utils/not/Makefile | 21 | ||||
-rw-r--r-- | gnu/llvm/utils/unittest/Makefile | 13 | ||||
-rw-r--r-- | gnu/llvm/utils/unittest/UnitTestMain/Makefile | 32 | ||||
-rw-r--r-- | gnu/llvm/utils/unittest/googletest/Makefile | 42 | ||||
-rw-r--r-- | gnu/llvm/utils/yaml-bench/Makefile | 20 |
17 files changed, 0 insertions, 947 deletions
diff --git a/gnu/llvm/utils/FileCheck/Makefile b/gnu/llvm/utils/FileCheck/Makefile deleted file mode 100644 index b8762365984..00000000000 --- a/gnu/llvm/utils/FileCheck/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -##===- utils/FileCheck/Makefile ----------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL = ../.. -TOOLNAME = FileCheck -USEDLIBS = LLVMSupport.a - -# This tool has no plugins, optimize startup time. -TOOL_NO_EXPORTS = 1 - -# FIXME: Don't install this utility -#NO_INSTALL = 1 - -include $(LEVEL)/Makefile.common - diff --git a/gnu/llvm/utils/Makefile b/gnu/llvm/utils/Makefile deleted file mode 100644 index a59318de483..00000000000 --- a/gnu/llvm/utils/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -##===- utils/Makefile --------------------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL = .. -PARALLEL_DIRS := FileCheck TableGen PerfectShuffle count fpcmp llvm-lit not \ - unittest yaml-bench - -EXTRA_DIST := check-each-file codegen-diff countloc.sh \ - DSAclean.py DSAextract.py emacs findsym.pl GenLibDeps.pl \ - getsrcs.sh llvmdo llvmgrep llvm-native-gcc \ - llvm-native-gxx makellvm profile.pl vim - -include $(LEVEL)/Makefile.common diff --git a/gnu/llvm/utils/Misc/mergefunctions.clang.svn.patch b/gnu/llvm/utils/Misc/mergefunctions.clang.svn.patch deleted file mode 100644 index 6e2f0f52279..00000000000 --- a/gnu/llvm/utils/Misc/mergefunctions.clang.svn.patch +++ /dev/null @@ -1,14 +0,0 @@ -Index: lib/CodeGen/BackendUtil.cpp -=================================================================== ---- lib/CodeGen/BackendUtil.cpp (revision 191330) -+++ lib/CodeGen/BackendUtil.cpp (working copy) -@@ -336,6 +336,9 @@ - MPM->add(createStripSymbolsPass(true)); - } - -+ // Force MergeFunctions pass. -+ MPM->add(createMergeFunctionsPass()); -+ - PMBuilder.populateModulePassManager(*MPM); - } - diff --git a/gnu/llvm/utils/PerfectShuffle/Makefile b/gnu/llvm/utils/PerfectShuffle/Makefile deleted file mode 100644 index 28709fefd31..00000000000 --- a/gnu/llvm/utils/PerfectShuffle/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -##===- utils/PerfectShuffle/Makefile -----------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL = ../.. -TOOLNAME = llvm-PerfectShuffle -NO_INSTALL = 1 - -# This tool has no plugins, optimize startup time. -TOOL_NO_EXPORTS = 1 - -include $(LEVEL)/Makefile.common - diff --git a/gnu/llvm/utils/TableGen/Makefile b/gnu/llvm/utils/TableGen/Makefile deleted file mode 100644 index 9bfd94b7576..00000000000 --- a/gnu/llvm/utils/TableGen/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -##===- utils/TableGen/Makefile -----------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL = ../.. -TOOLNAME = llvm-tblgen -USEDLIBS = LLVMTableGen.a LLVMSupport.a - -# This tool has no plugins, optimize startup time. -TOOL_NO_EXPORTS = 1 - -include $(LEVEL)/Makefile.common - diff --git a/gnu/llvm/utils/TableGen/module.modulemap b/gnu/llvm/utils/TableGen/module.modulemap deleted file mode 100644 index 8871bbfd4a2..00000000000 --- a/gnu/llvm/utils/TableGen/module.modulemap +++ /dev/null @@ -1,4 +0,0 @@ -module TableGen { - umbrella "." - module * { export * } -} diff --git a/gnu/llvm/utils/buildit/GNUmakefile b/gnu/llvm/utils/buildit/GNUmakefile deleted file mode 100644 index fc5578a6846..00000000000 --- a/gnu/llvm/utils/buildit/GNUmakefile +++ /dev/null @@ -1,132 +0,0 @@ -# LLVM LOCAL file build machinery -# LLVM Compiler Makefile for use by buildit. -# -# This makefile is intended only for use with B&I buildit. For "normal" builds -# use the conventional top-level makefile. -# -# You can specify TARGETS=ppc (or i386) on the buildit command line to limit the -# build to just one target. The default is for ppc and i386. The compiler -# targeted at this host gets built anyway, but not installed unless it's listed -# in TARGETS. - -# Include the set of standard Apple makefile definitions. -ifndef CoreOSMakefiles -CoreOSMakefiles = $(MAKEFILEPATH)/CoreOS -endif -include $(CoreOSMakefiles)/Standard/Standard.make - -# Enable Apple extensions to (gnu)make. -USE_APPLE_PB_SUPPORT = all - -RC_ARCHS := ppc i386 -HOSTS = $(RC_ARCHS) -targets = echo $(RC_ARCHS) -TARGETS := $(shell $(targets)) - -SRCROOT = . - -SRC = $(shell cd $(SRCROOT) && pwd | sed s,/private,,) -OBJROOT = $(SRC)/obj -SYMROOT = $(OBJROOT)/../sym -DSTROOT = $(OBJROOT)/../dst - -####################################################################### - -PREFIX = /usr/local - -# Unless assertions are forced on in the GMAKE command line, disable them. -ifndef ENABLE_ASSERTIONS -ENABLE_ASSERTIONS := no -endif - -# Default is optimized build. -ifeq ($(LLVM_DEBUG),1) -LLVM_OPTIMIZED := no -else -LLVM_OPTIMIZED := yes -endif - -# Default to do a native build, not a cross-build for an ARM host or simulator. -ARM_HOSTED_BUILD := no -IOS_SIM_BUILD := no - -ifndef RC_ProjectSourceVersion -RC_ProjectSourceVersion = 9999 -endif - -ifndef RC_ProjectSourceSubversion -RC_ProjectSourceSubversion = 0 -endif - -# NOTE : Always put version numbers at the end because they are optional. -install: $(OBJROOT) $(SYMROOT) $(DSTROOT) - cd $(OBJROOT) && \ - $(SRC)/utils/buildit/build_llvm "$(RC_ARCHS)" "$(TARGETS)" \ - $(SRC) $(PREFIX) $(DSTROOT) $(SYMROOT) \ - $(ENABLE_ASSERTIONS) $(LLVM_OPTIMIZED) \ - $(ARM_HOSTED_BUILD) $(IOS_SIM_BUILD) \ - $(RC_ProjectSourceVersion) $(RC_ProjectSourceSubversion) - -EmbeddedHosted: - $(MAKE) ARM_HOSTED_BUILD=yes PREFIX=/usr/local install - -# When building for the iOS simulator, MACOSX_DEPLOYMENT_TARGET is not set -# by default, but it needs to be set when building tools that run on the host -# (e.g., tblgen), so set it here. -EmbeddedSim: - export MACOSX_DEPLOYMENT_TARGET=`sw_vers -productVersion`; \ - $(MAKE) IOS_SIM_BUILD=yes PREFIX=$(SDKROOT)/usr/local install - -Embedded: - ARM_PLATFORM=`xcodebuild -version -sdk iphoneos PlatformPath` && \ - $(MAKE) DSTROOT=$(DSTROOT)$$ARM_PLATFORM/Developer install - -# installhdrs does nothing, because the headers aren't useful until -# the compiler is installed. -installhdrs: - -# We build and install in one shell script. -build: - -installsrc: - @echo - @echo ++++++++++++++++++++++ - @echo + Installing sources + - @echo ++++++++++++++++++++++ - @echo - if [ $(SRCROOT) != . ]; then \ - $(PAX) -rw . $(SRCROOT); \ - fi - find -d "$(SRCROOT)" \( -type d -a -name .svn -o \ - -type f -a -name .DS_Store -o \ - -name \*~ -o -name .\#\* \) \ - -exec rm -rf {} \; - rm -rf "$(SRCROOT)/test" - -####################################################################### - -clean: - @echo - @echo ++++++++++++ - @echo + Cleaning + - @echo ++++++++++++ - @echo - @if [ -d $(OBJROOT) -a "$(OBJROOT)" != / ]; then \ - echo '*** DELETING ' $(OBJROOT); \ - rm -rf $(OBJROOT); \ - fi - @if [ -d $(SYMROOT) -a "$(SYMROOT)" != / ]; then \ - echo '*** DELETING ' $(SYMROOT); \ - rm -rf $(SYMROOT); \ - fi - @if [ -d $(DSTROOT) -a "$(DSTROOT)" != / ]; then \ - echo '*** DELETING ' $(DSTROOT); \ - rm -rf $(DSTROOT); \ - fi - -####################################################################### - -$(OBJROOT) $(SYMROOT) $(DSTROOT): - mkdir -p $@ - -.PHONY: install installsrc clean EmbeddedHosted EmbeddedSim Embedded diff --git a/gnu/llvm/utils/buildit/build_llvm b/gnu/llvm/utils/buildit/build_llvm deleted file mode 100755 index bc609e909a9..00000000000 --- a/gnu/llvm/utils/buildit/build_llvm +++ /dev/null @@ -1,361 +0,0 @@ -#!/bin/sh -# LLVM LOCAL file B&I - -set -x - -# Build LLVM the "Apple way". -# Parameters: - -# The first parameter is a space-separated list of the architectures the -# compilers will run on. For instance, "ppc i386". If the current machine -# isn't in the list, it will (effectively) be added. -HOSTS="$1" - -# The second parameter is a space-separated list of the architectures the -# compilers will generate code for. If the current machine isn't in the list, a -# compiler for it will get built anyway, but won't be installed. -# FIXME: The list of targets is currently hard-coded and TARGETS is not used. -TARGETS="$2" - -# The third parameter is the path to the compiler sources. There should be a -# shell script named 'configure' in this directory. This script makes a copy... -ORIG_SRC_DIR="$3" - -# The fourth parameter is the location where the LLVM will be installed. You can -# move it once it's built, so this mostly controls the layout of $DEST_DIR. -DEST_ROOT="$4" - -# The fifth parameter is the place where the compiler will be copied once it's -# built. -DEST_DIR="$5" - -# The sixth parameter is a directory in which to place information (like -# unstripped executables and generated source files) helpful in debugging the -# resulting compiler. -SYM_DIR="$6" - -# The seventh parameter is a yes/no that indicates whether assertions should be -# enabled in the LLVM libs/tools. -LLVM_ASSERTIONS="$7" - -# The eighth parameter is a yes/no that indicates whether this is an optimized -# build. -LLVM_OPTIMIZED="$8" - -# A yes/no parameter that controls whether to cross-build for an ARM host. -ARM_HOSTED_BUILD="$9" - -# A yes/no parameter that controls whether to cross-build for the iOS simulator -IOS_SIM_BUILD="${10}" - -# The version number of the submission, e.g. 1007. -LLVM_SUBMIT_VERSION="${11}" - -# The subversion number of the submission, e.g. 03. -LLVM_SUBMIT_SUBVERSION="${12}" - -# The current working directory is where the build will happen. It may already -# contain a partial result of an interrupted build, in which case this script -# will continue where it left off. -DIR=`pwd` - -DARWIN_VERS=`uname -r | sed 's/\..*//'` -echo DARWIN_VERS = $DARWIN_VERS - -################################################################################ -# Run the build. - -# Create the source tree we'll actually use to build, deleting -# tcl since it doesn't actually build properly in a cross environment -# and we don't really need it. -SRC_DIR=$DIR/src -rm -rf $SRC_DIR || exit 1 -mkdir $SRC_DIR || exit 1 -ln -s $ORIG_SRC_DIR/* $SRC_DIR/ || exit 1 -# We can't use the top-level Makefile as-is. Remove the soft link: -rm $SRC_DIR/Makefile || exit 1 -# Now create our own by editing the top-level Makefile, deleting every line marked "Apple-style": -sed -e '/[Aa]pple-style/d' -e '/include.*GNUmakefile/d' $ORIG_SRC_DIR/Makefile > $SRC_DIR/Makefile || exit 1 - -SUBVERSION=`echo $RC_ProjectSourceVersion | sed -e 's/.*\.\([0-9]*\).*/\1/'` -if [ "x$SUBVERSION" != "x$RC_ProjectSourceVersion" ]; then - LLVM_SUBMIT_SUBVERSION=`printf "%02d" $SUBVERSION` - RC_ProjectSourceVersion=`echo $RC_ProjectSourceVersion | sed -e 's/\..*//'` - LLVM_SUBMIT_VERSION=$RC_ProjectSourceVersion -fi -if [ "x$LLVM_SUBMIT_SUBVERSION" = "x00" -o "x$LLVM_SUBMIT_SUBVERSION" = "x0" ]; then - LLVM_VERSION="$LLVM_SUBMIT_VERSION" -else - LLVM_VERSION="$LLVM_SUBMIT_VERSION-$LLVM_SUBMIT_SUBVERSION" -fi - -SDKROOT_PATH=`xcodebuild -version -sdk $SDKROOT Path` - -# Figure out how many make processes to run. -SYSCTL=`sysctl -n hw.activecpu` -# sysctl -n hw.* does not work when invoked via B&I chroot /BuildRoot. -# Builders can default to 2, since even if they are single processor, -# nothing else is running on the machine. -if [ -z "$SYSCTL" ]; then - SYSCTL=2 -fi -JOBS_FLAG="-j $SYSCTL" - -COMMON_CONFIGURE_OPTS="\ - --prefix=$DEST_DIR$DEST_ROOT \ - --enable-assertions=$LLVM_ASSERTIONS \ - --enable-optimized=$LLVM_OPTIMIZED \ - --disable-bindings \ - --disable-zlib \ - --enable-terminfo=no" - -COMMON_MAKEFLAGS="\ - UNIVERSAL=1 \ - UNIVERSAL_SDK_PATH=$SDKROOT_PATH \ - NO_RUNTIME_LIBS=1 \ - DISABLE_EDIS=1 \ - REQUIRES_RTTI=1 \ - DEBUG_SYMBOLS=1 \ - LLVM_SUBMIT_VERSION=$LLVM_SUBMIT_VERSION \ - LLVM_SUBMIT_SUBVERSION=$LLVM_SUBMIT_SUBVERSION \ - VERBOSE=1" - -# Build the LLVM tree universal. -mkdir -p $DIR/obj-llvm || exit 1 -cd $DIR/obj-llvm || exit 1 - -if [ "$ARM_HOSTED_BUILD" = yes ]; then - # The cross-tools' build process expects to find an existing cross toolchain - # under names like 'arm-apple-darwin$DARWIN_VERS-as'; so make them. - rm -rf $DIR/bin || exit 1 - mkdir $DIR/bin || exit 1 - for prog in ar nm ranlib strip lipo ld as ; do - P=$DIR/bin/arm-apple-darwin$DARWIN_VERS-${prog} - T=`xcrun -sdk $SDKROOT -find ${prog}` - ln -s $T $DIR/bin/$prog - echo '#!/bin/sh' > $P || exit 1 - echo 'exec '$T' "$@"' >> $P || exit 1 - chmod a+x $P || exit 1 - done - # Set up the links for clang. - for prog in clang clang++ ; do - P=$DIR/bin/arm-apple-darwin$DARWIN_VERS-${prog} - T=`xcrun -sdk $SDKROOT -find ${prog}` - ln -s $T $DIR/bin/$prog - echo '#!/bin/sh' > $P || exit 1 - echo 'exec '$T' -arch armv7 -isysroot '${SDKROOT_PATH}' "$@"' >> $P || exit 1 - chmod a+x $P || exit 1 - done - - PATH=$DIR/bin:$PATH - - unset SDKROOT && \ - $SRC_DIR/configure $COMMON_CONFIGURE_OPTS \ - --enable-targets=arm,arm64 \ - --host=arm-apple-darwin10 \ - --target=arm-apple-darwin10 \ - --build=i686-apple-darwin10 \ - --program-prefix="" \ - || exit 1 - - if [ -n "$IPHONEOS_DEPLOYMENT_TARGET" ]; then - COMMON_MAKEFLAGS="$COMMON_MAKEFLAGS \ - DEPLOYMENT_TARGET=-mios-version-min=$IPHONEOS_DEPLOYMENT_TARGET" - fi - - make $JOBS_FLAG $COMMON_MAKEFLAGS SDKROOT= UNIVERSAL_ARCH="$HOSTS" \ - CXXFLAGS="-DLLVM_VERSION_INFO='\" Apple Build #$LLVM_VERSION\"'" - if [ $? != 0 ] ; then - echo "error: LLVM 'make' failed!" - exit 1 - fi - -else -# not $ARM_HOSTED_BUILD - - if [ "$IOS_SIM_BUILD" = yes ]; then - export CC=`xcrun -sdk iphonesimulator -find clang` - export CXX=`xcrun -sdk iphonesimulator -find clang++` - - # Use a non-standard "darwin_sim" host triple to trigger a cross-build. - configure_opts="--enable-targets=x86 --host=i686-apple-darwin_sim \ - --build=i686-apple-darwin10" - if [ -n "$IPHONEOS_DEPLOYMENT_TARGET" ]; then - COMMON_MAKEFLAGS="$COMMON_MAKEFLAGS \ - DEPLOYMENT_TARGET=-mios-simulator-version-min=$IPHONEOS_DEPLOYMENT_TARGET" - fi - else - export CC=`xcrun -sdk macosx -find clang` - export CXX=`xcrun -sdk macosx -find clang++` - - configure_opts="--enable-targets=arm,arm64,x86" - if [ -n "$MACOSX_DEPLOYMENT_TARGET" ]; then - COMMON_MAKEFLAGS="$COMMON_MAKEFLAGS \ - DEPLOYMENT_TARGET=-mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET" - fi - fi - - if [ $SDKROOT_PATH ]; then - CPPFLAGS="$CPPFLAGS -isysroot $SDKROOT_PATH" - fi - for host in $HOSTS; do :; done - CPPFLAGS="$CPPFLAGS -arch $host" - - $SRC_DIR/configure $COMMON_CONFIGURE_OPTS $configure_opts \ - --program-prefix="" \ - CPPFLAGS="$CPPFLAGS" \ - || exit 1 - - make $JOBS_FLAG $COMMON_MAKEFLAGS UNIVERSAL_ARCH="$HOSTS" \ - CXXFLAGS="-DLLVM_VERSION_INFO='\" Apple Build #$LLVM_VERSION\"'" - if [ $? != 0 ] ; then - echo "error: LLVM 'make' failed!" - exit 1 - fi -fi - -################################################################################ -# Construct the actual destination root, by copying stuff from $DIR/dst-* to -# $DEST_DIR, with occasional 'lipo' commands. - -cd $DEST_DIR || exit 1 - -# Clean out DEST_DIR in case -noclean was passed to buildit. -rm -rf * || exit 1 - -cd $DIR/obj-llvm || exit 1 - -# Install the tree into the destination directory. -make $JOBS_FLAG $COMMON_MAKEFLAGS UNIVERSAL_ARCH="$HOSTS" install -if ! test $? == 0 ; then - echo "error: LLVM 'make install' failed!" - exit 1 -fi - -# Install Version.h -LLVM_MINOR_VERSION=`echo $LLVM_SUBMIT_SUBVERSION | sed -e 's,0*\([1-9][0-9]*\),\1,'` -if [ "x$LLVM_MINOR_VERSION" = "x" ]; then - LLVM_MINOR_VERSION=0 -fi -RC_ProjectSourceSubversion=`printf "%d" $LLVM_MINOR_VERSION` -echo "#define LLVM_VERSION ${RC_ProjectSourceVersion}" > $DEST_DIR$DEST_ROOT/include/llvm/Version.h -echo "#define LLVM_MINOR_VERSION ${RC_ProjectSourceSubversion}" >> $DEST_DIR$DEST_ROOT/include/llvm/Version.h - -# Run unifdef to preprocess the installed headers to reflect whether this -# was a debug or release build. -for file in `find $DEST_DIR$DEST_ROOT/include -type f -print`; do - if [ "$LLVM_ASSERTIONS" = yes ]; then - unifdef -UNDEBUG -D_DEBUG -o $file $file - else - unifdef -DNDEBUG -U_DEBUG -ULLVM_ENABLE_DUMP -o $file $file - fi -done - -# Find the right version of strip to use. -STRIP=strip -if [ -n "$SDKROOT" ]; then - STRIP=`xcrun -sdk $SDKROOT -find strip` -fi - -if [ "x$LLVM_DEBUG" != "x1" ]; then - # Strip local symbols from llvm libraries. - # - # Use '-l' to strip i386 modules. N.B. that flag doesn't work with kext or - # PPC objects! - $STRIP -Sl $DEST_DIR$DEST_ROOT/lib/*.[oa] - for f in `ls $DEST_DIR$DEST_ROOT/lib/*.so`; do - $STRIP -Sxl $f - done -fi - -# Remove .dir files -cd $DEST_DIR$DEST_ROOT -rm -f bin/.dir etc/llvm/.dir lib/.dir - -# The Hello dylib is an example of how to build a pass. -# The BugpointPasses module is only used to test bugpoint. -# These unversioned dylibs cause verification failures, so do not install them. -# (The wildcards are used to match a "lib" prefix if it is present.) -rm $DEST_DIR$DEST_ROOT/lib/*LLVMHello.dylib -rm $DEST_DIR$DEST_ROOT/lib/*BugpointPasses.dylib - -# Compress manpages -MDIR=$DEST_DIR$DEST_ROOT/share/man/man1 -gzip -f $MDIR/* - -################################################################################ -# Create SYM_DIR with information required for debugging. - -# Figure out how many make processes to run. -SYSCTL=`sysctl -n hw.activecpu` - -# hw.activecpu only available in 10.2.6 and later -if [ -z "$SYSCTL" ]; then - SYSCTL=`sysctl -n hw.ncpu` -fi - -# sysctl -n hw.* does not work when invoked via B&I chroot /BuildRoot. Builders -# can default to 2, since even if they are single processor, nothing else is -# running on the machine. -if [ -z "$SYSCTL" ]; then - SYSCTL=2 -fi - -cd $SYM_DIR || exit 1 - -# Clean out SYM_DIR in case -noclean was passed to buildit. -rm -rf * || exit 1 - -# Generate .dSYM files -DSYMUTIL=`xcrun -find dsymutil` -find $DEST_DIR -perm -0111 -type f \ - ! \( -name '*.la' -o -name gccas -o -name gccld -o -name llvm-config -o -name '*.a' \) \ - -print | xargs -n 1 -P ${SYSCTL} ${DSYMUTIL} - -# Save .dSYM files and .a archives -cd $DEST_DIR || exit 1 -find . \( -path \*.dSYM/\* -or -name \*.a \) -print \ - | cpio -pdml $SYM_DIR || exit 1 - -# Save source files. -mkdir $SYM_DIR/src || exit 1 -cd $DIR || exit 1 -find obj-* -name \*.\[chy\] -o -name \*.cpp -print \ - | cpio -pdml $SYM_DIR/src || exit 1 - -################################################################################ -# Remove libLTO.dylib and lto.h. Those are installed by clang. - -cd $DEST_DIR$DEST_ROOT -rm -f lib/libLTO.dylib -rm -f lib/libLTO.a lib/libLTO.la -find $DEST_DIR$DEST_ROOT -name lto.h -delete - -################################################################################ -# Remove debugging information from DEST_DIR. - -cd $DIR || exit 1 - -find $DEST_DIR -name \*.a -print | xargs ranlib || exit 1 -find $DEST_DIR -name \*.dSYM -print | xargs rm -r || exit 1 - -# Strip debugging information from files -# -# Use '-l' to strip i386 modules. N.B. that flag doesn't work with kext or -# PPC objects! -find $DEST_DIR -perm -0111 -type f \ - ! \( -name '*.la' -o -name gccas -o -name gccld -o -name llvm-config \) \ - -print | xargs -n 1 -P ${SYSCTL} $STRIP -arch all -Sl - -chgrp -h -R wheel $DEST_DIR -chgrp -R wheel $DEST_DIR - -################################################################################ -# Remove the docs directory - -rm -rf $DEST_DIR$DEST_ROOT/docs - -################################################################################ -# w00t! Done! - -exit 0 diff --git a/gnu/llvm/utils/count/Makefile b/gnu/llvm/utils/count/Makefile deleted file mode 100644 index 2a955e66679..00000000000 --- a/gnu/llvm/utils/count/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -##===- utils/count/Makefile --------------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL = ../.. -TOOLNAME = count -USEDLIBS = - -# This tool has no plugins, optimize startup time. -TOOL_NO_EXPORTS = 1 - -# FIXME: Don't install this utility -#NO_INSTALL = 1 - -include $(LEVEL)/Makefile.common diff --git a/gnu/llvm/utils/fpcmp/Makefile b/gnu/llvm/utils/fpcmp/Makefile deleted file mode 100644 index 81db3b9c3f6..00000000000 --- a/gnu/llvm/utils/fpcmp/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -##===- utils/fpcmp/Makefile --------------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL = ../.. -TOOLNAME = fpcmp -USEDLIBS = LLVMSupport.a -NO_INSTALL = 1 - -include $(LEVEL)/Makefile.common - diff --git a/gnu/llvm/utils/llvm-lit/Makefile b/gnu/llvm/utils/llvm-lit/Makefile deleted file mode 100644 index ce1cac9c32e..00000000000 --- a/gnu/llvm/utils/llvm-lit/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -##===- utils/llvm-lit/Makefile -----------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL = ../.. - -include $(LEVEL)/Makefile.common - -# llvm-lit needs suffix.py for multiprocess to find a main module. -ifeq ($(HOST_OS),MingW) - Suffix := .py -endif - -all:: $(ToolDir)/llvm-lit$(Suffix) - -$(ToolDir)/llvm-lit$(Suffix): llvm-lit.in Makefile $(ToolDir)/.dir - $(Echo) "Creating 'llvm-lit' script..." - $(Verb)$(ECHOPATH) s=@LLVM_SOURCE_DIR@=$(LLVM_SRC_ROOT)=g > lit.tmp - $(Verb)$(ECHOPATH) s=@LLVM_BINARY_DIR@=$(LLVM_OBJ_ROOT)=g >> lit.tmp - $(Verb)sed -f lit.tmp $< > $@ - $(Verb)chmod +x $@ - $(Verb)rm -f lit.tmp diff --git a/gnu/llvm/utils/llvm.natvis b/gnu/llvm/utils/llvm.natvis deleted file mode 100644 index 6c410a40ecb..00000000000 --- a/gnu/llvm/utils/llvm.natvis +++ /dev/null @@ -1,169 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?>
-<!--
-Visual Studio 2012 Native Debugging Visualizers for LLVM
-
-Put this file into "%USERPROFILE%\Documents\Visual Studio 2012\Visualizers"
-or create a symbolic link so it updates automatically.
--->
-<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
-
- <Type Name="llvm::SmallVectorImpl<*>">
- <DisplayString Condition="(($T1*)EndX - ($T1*)BeginX) == 0">empty</DisplayString>
- <DisplayString Condition="(($T1*)EndX - ($T1*)BeginX) != 0">{{ size={($T1*)EndX - ($T1*)BeginX} }}</DisplayString>
- <Expand>
- <Item Name="[size]">($T1*)EndX - ($T1*)BeginX</Item>
- <Item Name="[capacity]">($T1*)CapacityX - ($T1*)BeginX</Item>
- <ArrayItems>
- <Size>($T1*)EndX - ($T1*)BeginX</Size>
- <ValuePointer>($T1*)BeginX</ValuePointer>
- </ArrayItems>
- </Expand>
- </Type>
-
- <Type Name="llvm::SmallString<*>">
- <DisplayString>{BeginX,s}</DisplayString>
- <StringView>BeginX,s</StringView>
- <Expand>
- <Item Name="[size]">(char*)EndX - (char*)BeginX</Item>
- <Item Name="[capacity]">(char*)CapacityX - (char*)BeginX</Item>
- <ArrayItems>
- <Size>(char*)EndX - (char*)BeginX</Size>
- <ValuePointer>(char*)BeginX</ValuePointer>
- </ArrayItems>
- </Expand>
- </Type>
-
- <Type Name="llvm::StringRef">
- <DisplayString>{Data,[Length]s}</DisplayString>
- <StringView>Data,[Length]s</StringView>
- <Expand>
- <Item Name="[size]">Length</Item>
- <ArrayItems>
- <Size>Length</Size>
- <ValuePointer>Data</ValuePointer>
- </ArrayItems>
- </Expand>
- </Type>
-
- <Type Name="llvm::PointerIntPair<*,*,*,*>">
- <DisplayString>{(void*)(Value & PointerBitMask)} [{($T3)((Value >> IntShift) & IntMask)}]</DisplayString>
- <Expand>
- <Item Name="[ptr]">($T1*)(Value & PointerBitMask)</Item>
- <Item Name="[int]">($T3)((Value >> IntShift) & IntMask)</Item>
- </Expand>
- </Type>
-
- <Type Name="llvm::PointerUnion<*,*>">
- <DisplayString Condition="((Val.Value >> Val.IntShift) & Val.IntMask) == 0">{"$T1", s8b} {(void*)(Val.Value & Val.PointerBitMask)}</DisplayString>
- <DisplayString Condition="((Val.Value >> Val.IntShift) & Val.IntMask) != 0">{"$T2", s8b} {(void*)(Val.Value & Val.PointerBitMask)}</DisplayString>
- <Expand>
- <ExpandedItem Condition="((Val.Value >> Val.IntShift) & Val.IntMask) == 0">($T1)(Val.Value & Val.PointerBitMask)</ExpandedItem>
- <ExpandedItem Condition="((Val.Value >> Val.IntShift) & Val.IntMask) != 0">($T2)(Val.Value & Val.PointerBitMask)</ExpandedItem>
- </Expand>
- </Type>
-
- <Type Name="llvm::PointerUnion3<*,*,*>">
- <DisplayString Condition="(Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">{"$T1", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
- <DisplayString Condition="(Val.Val.Value & 2) == 2">{"$T2", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
- <DisplayString Condition="(Val.Val.Value & 1) == 1">{"$T3", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
- <Expand>
- <ExpandedItem Condition="(Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">($T1)((Val.Val.Value >> 2) << 2)</ExpandedItem>
- <ExpandedItem Condition="(Val.Val.Value & 2) == 2">($T2)((Val.Val.Value >> 2) << 2)</ExpandedItem>
- <ExpandedItem Condition="(Val.Val.Value & 1) == 1">($T3)((Val.Val.Value >> 2) << 2)</ExpandedItem>
- </Expand>
- </Type>
-
- <Type Name="llvm::PointerUnion4<*,*,*,*>">
- <DisplayString Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">{"$T1", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
- <DisplayString Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) == 2">{"$T2", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
- <DisplayString Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 1) == 1">{"$T3", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
- <DisplayString Condition="(Val.Val.Value & 3) == 3">{"$T4", s8b} {(void*)((Val.Val.Value >> 2) << 2)}</DisplayString>
- <Expand>
- <ExpandedItem Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) != 2 && (Val.Val.Value & 1) != 1">($T1)((Val.Val.Value >> 2) << 2)</ExpandedItem>
- <ExpandedItem Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 2) == 2">($T2)((Val.Val.Value >> 2) << 2)</ExpandedItem>
- <ExpandedItem Condition="(Val.Val.Value & 3) != 3 && (Val.Val.Value & 1) == 1">($T3)((Val.Val.Value >> 2) << 2)</ExpandedItem>
- <ExpandedItem Condition="(Val.Val.Value & 3) == 3">($T4)((Val.Val.Value >> 2) << 2)</ExpandedItem>
- </Expand>
- </Type>
-
- <Type Name="llvm::iplist<*,*>">
- <DisplayString Condition="Head == 0">{{ empty }}</DisplayString>
- <DisplayString Condition="Head != 0">{{ head={Head} }}</DisplayString>
- <Expand>
- <LinkedListItems>
- <HeadPointer>Head</HeadPointer>
- <NextPointer>Next</NextPointer>
- <ValueNode>this</ValueNode>
- </LinkedListItems>
- </Expand>
- </Type>
-
- <Type Name="llvm::IntrusiveRefCntPtr<*>">
- <DisplayString Condition="Obj == 0">empty</DisplayString>
- <DisplayString Condition="(Obj != 0) && (Obj->ref_cnt == 1)">RefPtr [1 ref] {*Obj}</DisplayString>
- <DisplayString Condition="(Obj != 0) && (Obj->ref_cnt != 1)">RefPtr [{Obj->ref_cnt} refs] {*Obj}</DisplayString>
- <Expand>
- <Item Condition="Obj != 0" Name="[refs]">Obj->ref_cnt</Item>
- <ExpandedItem Condition="Obj != 0">Obj</ExpandedItem>
- </Expand>
- </Type>
-
- <Type Name="llvm::SmallPtrSet<*,*>">
- <DisplayString Condition="CurArray == SmallArray">{{ [Small Mode] size={NumElements}, capacity={CurArraySize} }}</DisplayString>
- <DisplayString Condition="CurArray != SmallArray">{{ [Big Mode] size={NumElements}, capacity={CurArraySize} }}</DisplayString>
- <Expand>
- <Item Name="[size]">NumElements</Item>
- <Item Name="[capacity]">CurArraySize</Item>
- <ArrayItems>
- <Size>CurArraySize</Size>
- <ValuePointer>($T1*)CurArray</ValuePointer>
- </ArrayItems>
- </Expand>
- </Type>
-
- <Type Name="llvm::DenseMap<*,*,*>">
- <DisplayString Condition="NumEntries == 0">empty</DisplayString>
- <DisplayString Condition="NumEntries != 0">{{ size={NumEntries}, buckets={NumBuckets} }}</DisplayString>
- <Expand>
- <Item Name="[size]">NumEntries</Item>
- <Item Name="[buckets]">NumBuckets</Item>
- <ArrayItems>
- <Size>NumBuckets</Size>
- <ValuePointer>Buckets</ValuePointer>
- </ArrayItems>
- </Expand>
- </Type>
-
- <Type Name="llvm::StringMap<*,*>">
- <DisplayString>{{ size={NumItems}, buckets={NumBuckets} }}</DisplayString>
- <Expand>
- <Item Name="[size]">NumItems</Item>
- <Item Name="[buckets]">NumBuckets</Item>
- <ArrayItems>
- <Size>NumBuckets</Size>
- <ValuePointer>(MapEntryTy**)TheTable</ValuePointer>
- </ArrayItems>
- </Expand>
- </Type>
-
- <Type Name="llvm::StringMapEntry<*>">
- <DisplayString Condition="StrLen == 0">empty</DisplayString>
- <DisplayString Condition="StrLen != 0">({this+1,s}, {second})</DisplayString>
- <Expand>
- <Item Name="[key]">this+1,s</Item>
- <Item Name="[value]" Condition="StrLen != 0">second</Item>
- </Expand>
- </Type>
-
- <Type Name="llvm::Triple">
- <DisplayString>{Data}</DisplayString>
- </Type>
-
- <Type Name="llvm::Optional<*>">
- <DisplayString Condition="!hasVal">empty</DisplayString>
- <DisplayString Condition="hasVal">{*(($T1 *)(unsigned char *)storage.buffer)}</DisplayString>
- <Expand>
- <Item Name="[underlying]" Condition="hasVal">*(($T1 *)(unsigned char *)storage.buffer)</Item>
- </Expand>
- </Type>
-</AutoVisualizer>
diff --git a/gnu/llvm/utils/not/Makefile b/gnu/llvm/utils/not/Makefile deleted file mode 100644 index 26b7450d48b..00000000000 --- a/gnu/llvm/utils/not/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -##===- utils/not/Makefile ----------------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL = ../.. -TOOLNAME = not -USEDLIBS = LLVMSupport.a - -# This tool has no plugins, optimize startup time. -TOOL_NO_EXPORTS = 1 - -# FIXME: Don't install this utility -#NO_INSTALL = 1 - -include $(LEVEL)/Makefile.common - diff --git a/gnu/llvm/utils/unittest/Makefile b/gnu/llvm/utils/unittest/Makefile deleted file mode 100644 index 6a09341832b..00000000000 --- a/gnu/llvm/utils/unittest/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -##===- utils/unittest/Makefile -----------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL = ../.. -PARALLEL_DIRS = googletest UnitTestMain - -include $(LEVEL)/Makefile.common diff --git a/gnu/llvm/utils/unittest/UnitTestMain/Makefile b/gnu/llvm/utils/unittest/UnitTestMain/Makefile deleted file mode 100644 index 7bcb7249504..00000000000 --- a/gnu/llvm/utils/unittest/UnitTestMain/Makefile +++ /dev/null @@ -1,32 +0,0 @@ -##===- utils/unittest/UnitTestMain/Makefile ----------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL = ../../.. - -include $(LEVEL)/Makefile.config - -LIBRARYNAME = gtest_main -BUILD_ARCHIVE = 1 -REQUIRES_RTTI = 1 - -CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include -CPP.Flags += $(NO_MISSING_FIELD_INITIALIZERS) $(NO_VARIADIC_MACROS) -CPP.Flags += -DGTEST_HAS_RTTI=0 -# libstdc++'s TR1 <tuple> header depends on RTTI and uses C++'0x features not -# supported by Clang, so force googletest to use its own tuple implementation. -CPP.Flags += -DGTEST_USE_OWN_TR1_TUPLE - -# Disable pthreads if LLVM was configured without them. -ifneq ($(HAVE_PTHREAD), 1) - CPP.Flags += -DGTEST_HAS_PTHREAD=0 -endif - -NO_INSTALL = 1 - -include $(LEVEL)/Makefile.common diff --git a/gnu/llvm/utils/unittest/googletest/Makefile b/gnu/llvm/utils/unittest/googletest/Makefile deleted file mode 100644 index 3d85e7da0ba..00000000000 --- a/gnu/llvm/utils/unittest/googletest/Makefile +++ /dev/null @@ -1,42 +0,0 @@ -##===- utils/unittest/googletest/Makefile ------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL := ../../.. - -include $(LEVEL)/Makefile.config - -LIBRARYNAME = gtest -BUILD_ARCHIVE = 1 -REQUIRES_RTTI = 1 - -# Note that these flags are duplicated when building individual tests in -# unittests/Makefile.unittest and ../UnitTestMain/Makefile; ensure that any -# changes are made to both. -CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include -CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest -CPP.Flags += $(NO_MISSING_FIELD_INITIALIZERS) $(NO_VARIADIC_MACROS) -CPP.Flags += -DGTEST_HAS_RTTI=0 -# libstdc++'s TR1 <tuple> header depends on RTTI and uses C++'0x features not -# supported by Clang, so force googletest to use its own tuple implementation. -CPP.Flags += -DGTEST_USE_OWN_TR1_TUPLE - -# Disable pthreads if LLVM was configured without them. -ifneq ($(HAVE_PTHREAD), 1) - CPP.Flags += -DGTEST_HAS_PTHREAD=0 -endif - -ifeq ($(HOST_OS),MingW) - CPP.Flags += -DGTEST_OS_WINDOWS=1 -endif - -NO_INSTALL = 1 - -SOURCES = src/gtest-all.cc - -include $(LEVEL)/Makefile.common diff --git a/gnu/llvm/utils/yaml-bench/Makefile b/gnu/llvm/utils/yaml-bench/Makefile deleted file mode 100644 index 07e91226c7a..00000000000 --- a/gnu/llvm/utils/yaml-bench/Makefile +++ /dev/null @@ -1,20 +0,0 @@ -##===- utils/yaml-bench/Makefile ---------------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## - -LEVEL = ../.. -TOOLNAME = yaml-bench -USEDLIBS = LLVMSupport.a - -# This tool has no plugins, optimize startup time. -TOOL_NO_EXPORTS = 1 - -# Don't install this utility -NO_INSTALL = 1 - -include $(LEVEL)/Makefile.common |