Use -H on darwin as well.
authorEric Christopher <echristo@apple.com>
Thu, 26 Jan 2012 22:06:23 +0000 (22:06 +0000)
committerEric Christopher <echristo@apple.com>
Thu, 26 Jan 2012 22:06:23 +0000 (22:06 +0000)
Patch by Liang Wang!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149085 91177308-0d34-0410-b5e6-96231b3b80d8

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" \