summaryrefslogtreecommitdiffstats
path: root/lldb/source/Utility/TildeExpressionResolver.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-11-09 01:59:28 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-11-09 01:59:28 +0000
commit72787ac661626c6972bf028dfb9b3615a89346ea (patch)
treec120717f89bb2740bbc17b1f840ec1413eca1c29 /lldb/source/Utility/TildeExpressionResolver.cpp
parent2faf079494e90c1a941cf1bf51c8e7abb19bcef9 (diff)
downloadbcm5719-llvm-72787ac661626c6972bf028dfb9b3615a89346ea.tar.gz
bcm5719-llvm-72787ac661626c6972bf028dfb9b3615a89346ea.zip
Revert "[FileSystem] Make use of FS in TildeExpressionResolver"
The whole point of this change was making it possible to resolve paths without depending on the FileSystem, which is not what I did here. Not sure what I was thinking... llvm-svn: 346466
Diffstat (limited to 'lldb/source/Utility/TildeExpressionResolver.cpp')
-rw-r--r--lldb/source/Utility/TildeExpressionResolver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Utility/TildeExpressionResolver.cpp b/lldb/source/Utility/TildeExpressionResolver.cpp
index 8f3d04f90f0..ae947059d8b 100644
--- a/lldb/source/Utility/TildeExpressionResolver.cpp
+++ b/lldb/source/Utility/TildeExpressionResolver.cpp
@@ -8,13 +8,13 @@
//===----------------------------------------------------------------------===//
#include "lldb/Utility/TildeExpressionResolver.h"
-#include "lldb/Host/FileSystem.h"
#include <assert.h> // for assert
#include <system_error> // for error_code
#include "llvm/ADT/STLExtras.h" // for any_of
#include "llvm/ADT/SmallVector.h" // for SmallVectorImpl
+#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h" // for fs
@@ -37,7 +37,7 @@ bool StandardTildeExpressionResolver::ResolveExact(
assert(!llvm::any_of(Expr, [](char c) { return path::is_separator(c); }));
assert(Expr.empty() || Expr[0] == '~');
- return !m_fs.GetRealPath(Expr, Output, true);
+ return !fs::real_path(Expr, Output, true);
}
bool StandardTildeExpressionResolver::ResolvePartial(StringRef Expr,
OpenPOWER on IntegriCloud