Remove use of ETForest. Also cleaned up issues around unreachable basic
[oota-llvm.git] / utils / llvmgrep
index 0b6bdf35b02916ffb59e86a5d9a1c53fd9d9284d..c24dc6f3ab6a59ba74b3b774ead07a1054f57980 100755 (executable)
 # details.
 ##===----------------------------------------------------------------------===##
 
-if test $# -gt 1 ; then
-  if test "$1" = "-topdir" ; then
-    TOPDIR="$2"
-    shift; shift;
-  else
-    TOPDIR=`llvm-config --src-root`
-  fi
+if test "$1" = "-topdir" ; then
+  TOPDIR="$2"
+  shift; shift;
+else
+  TOPDIR=`llvm-config --src-root`
 fi
 
 if test -d "$TOPDIR" ; then