[Libclc-dev] [PATCH 1/1] check_external_calls.sh: Print number of	calls in tested file.
    Jan Vesely via Libclc-dev 
    libclc-dev at lists.llvm.org
       
    Sun Oct  8 01:46:01 PDT 2017
    
    
  
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
 check_external_calls.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/check_external_calls.sh b/check_external_calls.sh
index ad1d8c2..80b595c 100755
--- a/check_external_calls.sh
+++ b/check_external_calls.sh
@@ -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
-- 
2.13.6
    
    
More information about the Libclc-dev
mailing list