summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/HostInfoBase.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-10-31 21:49:27 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-10-31 21:49:27 +0000
commit46376966ea0f7ea9935e5d27deb423d5d9b72eff (patch)
treef67a900874bc732e7bec2afe10764076cbacc3c1 /lldb/source/Host/common/HostInfoBase.cpp
parent063fd98bcc06e49009df8cbd18484a81a612aeb6 (diff)
downloadbcm5719-llvm-46376966ea0f7ea9935e5d27deb423d5d9b72eff.tar.gz
bcm5719-llvm-46376966ea0f7ea9935e5d27deb423d5d9b72eff.zip
[FileSystem] Extend file system and have it use the VFS.
This patch extends the FileSystem class with a bunch of functions that are currently implemented as methods of the FileSpec class. These methods will be removed in future commits and replaced by calls to the file system. The new functions are operated in terms of the virtual file system which was recently moved from clang into LLVM so it could be reused in lldb. Because the VFS is stateful, we turned the FileSystem class into a singleton. Differential revision: https://reviews.llvm.org/D53532 llvm-svn: 345783
Diffstat (limited to 'lldb/source/Host/common/HostInfoBase.cpp')
-rw-r--r--lldb/source/Host/common/HostInfoBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/common/HostInfoBase.cpp b/lldb/source/Host/common/HostInfoBase.cpp
index 4de6953a91e..42454afef5f 100644
--- a/lldb/source/Host/common/HostInfoBase.cpp
+++ b/lldb/source/Host/common/HostInfoBase.cpp
@@ -226,7 +226,7 @@ bool HostInfoBase::ComputeSharedLibraryDirectory(FileSpec &file_spec) {
// This is necessary because when running the testsuite the shlib might be a
// symbolic link inside the Python resource dir.
- FileSystem::ResolveSymbolicLink(lldb_file_spec, lldb_file_spec);
+ FileSystem::Instance().ResolveSymbolicLink(lldb_file_spec, lldb_file_spec);
// Remove the filename so that this FileSpec only represents the directory.
file_spec.GetDirectory() = lldb_file_spec.GetDirectory();
OpenPOWER on IntegriCloud