[TableGen] Use range-based for loops. Also fix one loop to not use some index name...
[oota-llvm.git] / utils / llvmgrep
index 540f0598579dc2fa39476a0ded87cbd725540435..dc15da4961efcad5cd8c668056af99f1c7099ccd 100755 (executable)
@@ -29,7 +29,7 @@ if test -d "$TOPDIR" ; then
   cd $TOPDIR
   case `uname -s` in
     SunOS) grep_cmd="ggrep -H -n" ;;
-    Linux) grep_cmd="egrep -H -n" ;;
+    Linux|Darwin) grep_cmd="egrep -H -n" ;;
     *) grep_cmd="egrep -l -n" ;;
   esac
   ./utils/llvmdo -topdir "$TOPDIR" \