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);
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);
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits