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
-o - $TMPLLVM | as
-o $TMPFILE
39 if [ $NEED_LINK -eq 1 ]; then
40 if [ -z $OUTFILE ]; then
43 gcc
$TMPFILE -o $OUTFILE
45 if [ -z $OUTFILE ]; then
46 echo "`basename $0`: no output file"