Use the new -code-only option to llvmdo so that we only count things that
[oota-llvm.git] / utils / countloc.sh
index 736b8805df674a0bfe00336ecb60069f40c59ba0..95574cb4462f9eeee1ca51e5744a2d75383625a9 100755 (executable)
@@ -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; }'