diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-11-10 22:44:06 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-11-10 22:44:06 +0000 |
commit | 1cc0714c68438f6ddf78b84599f8e80642a2233a (patch) | |
tree | 8f5101311e228a88b26aec44e303bc0126208a0c /lldb/source/Commands/CommandObjectMemory.cpp | |
parent | 3889c36d3fcc9d1fc7b8426ab8dae05214bf9ba3 (diff) | |
download | bcm5719-llvm-1cc0714c68438f6ddf78b84599f8e80642a2233a.tar.gz bcm5719-llvm-1cc0714c68438f6ddf78b84599f8e80642a2233a.zip |
Extract construction of DataBufferLLVM into FileSystem
This moves construction of data buffers into the FileSystem class. Like
some of the previous refactorings we don't translate the path yet
because the functionality hasn't been landed in LLVM yet.
Differential revision: https://reviews.llvm.org/D54272
llvm-svn: 346598
Diffstat (limited to 'lldb/source/Commands/CommandObjectMemory.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectMemory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectMemory.cpp b/lldb/source/Commands/CommandObjectMemory.cpp index 6cec77785d3..27761585a76 100644 --- a/lldb/source/Commands/CommandObjectMemory.cpp +++ b/lldb/source/Commands/CommandObjectMemory.cpp @@ -1361,7 +1361,7 @@ protected: size_t length = SIZE_MAX; if (item_byte_size > 1) length = item_byte_size; - auto data_sp = DataBufferLLVM::CreateSliceFromPath( + auto data_sp = FileSystem::Instance().CreateDataBuffer( m_memory_options.m_infile.GetPath(), length, m_memory_options.m_infile_offset); if (data_sp) { |