From 4e6115ea3a2f2a5dbcd9ae07428cd8de4a1d7840 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 13 Aug 2006 18:29:21 +0000 Subject: [PATCH] Use the new -code-only option to llvmdo so that we only count things that are considered to be code. This will give a drop in the LOC count on the nightly testers, but it is more accurate than previous estimates. llvm-svn: 29653 --- llvm/utils/countloc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/countloc.sh b/llvm/utils/countloc.sh index 736b8805df67..95574cb4462f 100755 --- a/llvm/utils/countloc.sh +++ b/llvm/utils/countloc.sh @@ -22,7 +22,7 @@ TOPDIR=`llvm-config --src-root` if test -d "$TOPDIR" ; then cd $TOPDIR - ./utils/llvmdo -dirs "include lib tools test utils examples" wc -l | awk '\ + ./utils/llvmdo -dirs "include lib tools test utils examples" -code-only wc -l | awk '\ BEGIN { loc=0; } \ { loc += $1; } \ END { print loc; }'