Author: jvesely
Date: Sun Oct  8 13:07:56 2017
New Revision: 315192

URL: http://llvm.org/viewvc/llvm-project?rev=315192&view=rev
Log:
check_external_calls.sh: Print number of calls in tested file.

Reviewer: Jeroen Ketema
Signed-off-by: Jan Vesely <jan.ves...@rutgers.edu>

Modified:
    libclc/trunk/check_external_calls.sh

Modified: libclc/trunk/check_external_calls.sh
URL: 
http://llvm.org/viewvc/llvm-project/libclc/trunk/check_external_calls.sh?rev=315192&r1=315191&r2=315192&view=diff
==============================================================================
--- libclc/trunk/check_external_calls.sh (original)
+++ libclc/trunk/check_external_calls.sh Sun Oct  8 13:07:56 2017
@@ -24,9 +24,10 @@ TMP_FILE=$(mktemp)
 
 # Check for calls. Calls to llvm intrinsics are OK
 $DIS < $FILE | grep ' call ' | grep -v '@llvm' > "$TMP_FILE"
+COUNT=$(wc -l < "$TMP_FILE")
 
-if [ $(wc -l < "$TMP_FILE") -ne "0" ]; then
-       echo "ERROR: unresolved calls detected"
+if [ "$COUNT" -ne "0" ]; then
+       echo "ERROR: $COUNT unresolved calls detected in $FILE"
        cat $TMP_FILE
        ret=1
 else


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to