3 # GCC compatible C compiler based on Sparse LLVM
13 echo "`basename $0`: no input files"
17 while [ $# -gt 0 ]; do
27 SPARSEOPTS
="$SPARSEOPTS $1 " ;;
32 TMPLLVM
=`mktemp -t tmp.XXXXXX`".llvm"
33 TMPFILE
=`mktemp -t tmp.XXXXXX`".o"
35 $DIRNAME/sparse-llvm
$SPARSEOPTS > $TMPLLVM
37 LLC
=`"${LLVM_CONFIG:-llvm-config}" --bindir`/llc
39 $LLC -o - $TMPLLVM | as
-o $TMPFILE
41 if [ $NEED_LINK -eq 1 ]; then
42 if [ -z $OUTFILE ]; then
45 gcc
$TMPFILE -o $OUTFILE
47 if [ -z $OUTFILE ]; then
48 echo "`basename $0`: no output file"