[FileSystem] Open File instances through the FileSystem.
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 2 Nov 2018 22:34:51 +0000 (22:34 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 2 Nov 2018 22:34:51 +0000 (22:34 +0000)
commit50bc1ed290824218a1bb46f70ec731712da610b0
tree1d3e18cd42de622121b266b93322ec7d6e6c4507
parentd1932dcdd3e3212ad6ad21f586cfa8a44940b8f9
[FileSystem] Open File instances through the FileSystem.

This patch modifies how we open File instances in LLDB. Rather than
passing a path or FileSpec to the constructor, we now go through the
virtual file system. This is needed in order to make things work with
the VFS in the future.

Differential revision: https://reviews.llvm.org/D54020

llvm-svn: 346049
19 files changed:
lldb/include/lldb/Host/File.h
lldb/include/lldb/Host/FileSystem.h
lldb/source/API/SBStream.cpp
lldb/source/Commands/CommandObjectBugreport.cpp
lldb/source/Commands/CommandObjectMemory.cpp
lldb/source/Core/StreamFile.cpp
lldb/source/Expression/REPL.cpp
lldb/source/Host/common/File.cpp
lldb/source/Host/common/FileCache.cpp
lldb/source/Host/common/FileSystem.cpp
lldb/source/Interpreter/CommandInterpreter.cpp
lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
lldb/source/Target/ModuleCache.cpp
lldb/source/Target/Platform.cpp
lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp