Skip to content

Commit 437e37d

Browse files
EricSLjankratochvil
authored andcommitted
[nfc] [lldb] Support moving support files instead of copy
Split from D100299. Reviewed By: jankratochvil Differential Revision: https://reviews.llvm.org/D107165
1 parent 380b8a6 commit 437e37d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lldb/include/lldb/Symbol/CompileUnit.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ class CompileUnit : public std::enable_shared_from_this<CompileUnit>,
332332
void SetLineTable(LineTable *line_table);
333333

334334
void SetSupportFiles(const FileSpecList &support_files);
335+
void SetSupportFiles(FileSpecList &&support_files);
335336

336337
void SetDebugMacros(const DebugMacrosSP &debug_macros);
337338

lldb/source/Symbol/CompileUnit.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ void CompileUnit::SetSupportFiles(const FileSpecList &support_files) {
181181
m_support_files = support_files;
182182
}
183183

184+
void CompileUnit::SetSupportFiles(FileSpecList &&support_files) {
185+
m_support_files = std::move(support_files);
186+
}
187+
184188
DebugMacros *CompileUnit::GetDebugMacros() {
185189
if (m_debug_macros_sp.get() == nullptr) {
186190
if (m_flags.IsClear(flagsParsedDebugMacros)) {

0 commit comments

Comments
 (0)