[Libclc-dev] [PATCH 1/1] check_external_calls.sh: Print number of calls in tested file.
Jeroen Ketema via Libclc-dev
libclc-dev at lists.llvm.org
Sun Oct 8 03:06:26 PDT 2017
LGTM.
-- Jeroen
> On 8 Oct 2017, at 10:46, Jan Vesely via Libclc-dev <libclc-dev at lists.llvm.org> wrote:
>
> 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
>
> _______________________________________________
> Libclc-dev mailing list
> Libclc-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/libclc-dev
More information about the Libclc-dev
mailing list