aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sparsei
diff options
authorXi Wang <xi.wang@gmail.com>2013-05-17 03:05:59 -0400
committerPekka Enberg <penberg@kernel.org>2013-05-18 10:34:01 +0300
commitb17550b274916fc5a4b6f89a3f95572e6f9bce7f (patch)
tree5a594693eb8017da2da1fc471f26b5847be02684 /sparsei
parent0448f78f5fae84b8a9c1358129a03ea24e593b34 (diff)
downloadsparse-dev-b17550b274916fc5a4b6f89a3f95572e6f9bce7f.tar.gz
sparse, llvm: simplify function generation
Remove repeated code, such as get_func_type() vs sym_func_type(), pseudo_type() vs symbol_type(). Fix generating variadic functions. Add a test case using printf(). Cc: Jeff Garzik <jgarzik@redhat.com> Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'sparsei')
-rwxr-xr-xsparsei13
1 files changed, 13 insertions, 0 deletions
diff --git a/sparsei b/sparsei
new file mode 100755
index 00000000..46321542
--- /dev/null
+++ b/sparsei
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set +e
+
+DIRNAME=`dirname $0`
+LLI=`llvm-config --bindir`/lli
+
+if [ $# -eq 0 ]; then
+ echo "`basename $0`: no input files"
+ exit 1
+fi
+
+$DIRNAME/sparse-llvm $@ | $LLI