repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
db: use the load_strings_from_file() helper function
[smatch.git]
/
sparsei
blob
3232200e927769b7fe9357638083220486e1ecbc
1
#!/bin/sh
2
3
set
+
e
4
5
SPARSEOPTS
=
6
JIT_OPT
=
7
8
DIRNAME
=
`dirname
$0
`
9
LLI
=
`"
${LLVM_CONFIG:-llvm-config}
" --bindir`
/
lli
10
11
if
[
$#
-eq
0
];
then
12
echo
"`basename
$0
`: no input files"
13
exit
1
14
fi
15
16
while
[
$#
-gt
0
];
do
17
case
$1
in
18
--jit
)
19
JIT_OPT
=
20
;;
21
--no-jit
)
22
JIT_OPT
=
"-force-interpreter"
23
;;
24
*)
25
SPARSEOPTS
=
"
$SPARSEOPTS
$1
"
26
;;
27
esac
28
shift
29
done
30
31
$DIRNAME
/
sparse-llvm
${SPARSEOPTS}
|
$LLI ${JIT_OPT}