Pass a MemoryBufferRef when we can avoid taking ownership.
[oota-llvm.git] / utils / getsrcs.sh
index d6a8ba2d886dd63937d40b6c681e11ff0e65a71b..c8bff8cf833d8b8dcf29af6360b535674d724aea 100755 (executable)
@@ -3,8 +3,8 @@
 # 
 #                     The LLVM Compiler Infrastructure
 #
-# This file was developed by Chris Lattner and Reid Spencer and is distributed 
-# under the # University of Illinois Open Source License. See LICENSE.TXT for 
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
 # details.
 # 
 ##===----------------------------------------------------------------------===##
 # 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