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)) {