[Lldb-commits] [PATCH] D107165: Support moving support files instead of copy
Jan Kratochvil via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 2 12:43:46 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG437e37dd5539: [nfc] [lldb] Support moving support files instead of copy (authored by Eric, committed by jankratochvil).
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107165/new/
https://reviews.llvm.org/D107165
Files:
lldb/include/lldb/Symbol/CompileUnit.h
lldb/source/Symbol/CompileUnit.cpp
Index: lldb/source/Symbol/CompileUnit.cpp
===================================================================
--- lldb/source/Symbol/CompileUnit.cpp
+++ lldb/source/Symbol/CompileUnit.cpp
@@ -181,6 +181,10 @@
m_support_files = support_files;
}
+void CompileUnit::SetSupportFiles(FileSpecList &&support_files) {
+ m_support_files = std::move(support_files);
+}
+
DebugMacros *CompileUnit::GetDebugMacros() {
if (m_debug_macros_sp.get() == nullptr) {
if (m_flags.IsClear(flagsParsedDebugMacros)) {
Index: lldb/include/lldb/Symbol/CompileUnit.h
===================================================================
--- lldb/include/lldb/Symbol/CompileUnit.h
+++ lldb/include/lldb/Symbol/CompileUnit.h
@@ -332,6 +332,7 @@
void SetLineTable(LineTable *line_table);
void SetSupportFiles(const FileSpecList &support_files);
+ void SetSupportFiles(FileSpecList &&support_files);
void SetDebugMacros(const DebugMacrosSP &debug_macros);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107165.363548.patch
Type: text/x-patch
Size: 957 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210802/81fb825f/attachment-0001.bin>
More information about the lldb-commits
mailing list