aboutsummaryrefslogtreecommitdiffstats
path: root/utils/llvmgrep
diff options
context:
space:
mode:
Diffstat (limited to 'utils/llvmgrep')
-rwxr-xr-xutils/llvmgrep3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/llvmgrep b/utils/llvmgrep
index e5a08ad..d4369c7 100755
--- a/utils/llvmgrep
+++ b/utils/llvmgrep
@@ -18,8 +18,7 @@
# details.
##===----------------------------------------------------------------------===##
-TOPDIR=`pwd | sed -e 's#\(.*/llvm[0-9]*\).*#\1#'`
-echo $TOPDIR
+TOPDIR=`llvm-config --src-root`
if test -d "$TOPDIR" ; then
cd $TOPDIR
case `uname -s` in