summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Disassembler.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/Core/Disassembler.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/Core/Disassembler.cpp')
-rw-r--r--lldb/source/Core/Disassembler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Disassembler.cpp b/lldb/source/Core/Disassembler.cpp
index b72e210628e..413aff277a5 100644
--- a/lldb/source/Core/Disassembler.cpp
+++ b/lldb/source/Core/Disassembler.cpp
@@ -934,7 +934,7 @@ bool Instruction::TestEmulation(Stream *out_stream, const char *file_name) {
out_stream->Printf("Instruction::TestEmulation: Missing file_name.");
return false;
}
- FILE *test_file = FileSystem::Fopen(file_name, "r");
+ FILE *test_file = FileSystem::Instance().Fopen(file_name, "r");
if (!test_file) {
out_stream->Printf(
"Instruction::TestEmulation: Attempt to open test file failed.");
OpenPOWER on IntegriCloud