[Lldb-commits] [PATCH] D76803: Remove m_last_file_sp from SourceManager
Emre Kultursay via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 25 14:38:48 PDT 2020
emrekultursay created this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
emrekultursay updated this revision to Diff 252675.
emrekultursay added a comment.
emrekultursay updated this revision to Diff 252677.
No changes
emrekultursay added a comment.
Adding 3rd commit to diff
...and replace it with m_last_file_spec instead.
When Source Cache is enabled, the value stored in m_last_file_sp is
already in the Source Cache, and caching it again in SourceManager
brings no extra benefit. All we need is to "remember" the last used
file, and FileSpec can serve the same purpose.
When Source Cache is disabled, the user explicitly requested no caching
of source files, and therefore, m_last_file_sp should NOT be used.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76803
Files:
lldb/include/lldb/Core/Debugger.h
lldb/include/lldb/Core/SourceManager.h
lldb/source/Core/CoreProperties.td
lldb/source/Core/Debugger.cpp
lldb/source/Core/SourceManager.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76803.252677.patch
Type: text/x-patch
Size: 8297 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200325/5b9de994/attachment-0001.bin>
More information about the lldb-commits
mailing list