5 if [ ! -f $FILE ]; then
6 echo "ERROR: Not a file: $FILE"
11 DIS
="$BIN_DIR/llvm-dis"
12 if [ ! -x $DIS ]; then
13 echo "ERROR: Disassembler '$DIS' is not executable"
19 # Check for calls. Calls to llvm intrinsics are OK
20 $DIS < $FILE |
grep ' call ' |
grep -v '@llvm' > "$TMP_FILE"
21 COUNT
=$
(wc -l < "$TMP_FILE")
23 if [ "$COUNT" -ne "0" ]; then
24 echo "ERROR: $COUNT unresolved calls detected in $FILE"
28 echo "File $FILE is OK"