summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-07-18 20:19:24 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-07-18 20:19:24 +0000
commitf893d5bf0f313b718f6209d666e5a6e32eed961e (patch)
treee6d63f68f9f1fcb6fb5a2f5cb57fad9e9d9e0472 /lldb/source/Plugins/ObjectFile
parentbe7a7ae0c3da18138fa5f117765c56b5ee8df3c4 (diff)
downloadbcm5719-llvm-f893d5bf0f313b718f6209d666e5a6e32eed961e.tar.gz
bcm5719-llvm-f893d5bf0f313b718f6209d666e5a6e32eed961e.zip
[FileSpecList] Add EmplaceBack method (NFC)
Instead of having to write FileSpecList::Append(FileSpec(args)) you can now call FileSpecList::EmplaceBack(args), similar to std::vector<>::emplace_back. llvm-svn: 366489
Diffstat (limited to 'lldb/source/Plugins/ObjectFile')
-rw-r--r--lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
index fab379037fc..cc2b3ae845b 100644
--- a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
+++ b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
@@ -946,10 +946,10 @@ uint32_t ObjectFilePECOFF::ParseDependentModules() {
dll_specs.GetDirectory().SetString(m_file.GetDirectory().GetCString());
if (!llvm::sys::fs::real_path(dll_specs.GetPath(), dll_fullpath))
- m_deps_filespec->Append(FileSpec(dll_fullpath));
+ m_deps_filespec->EmplaceBack(dll_fullpath);
else {
// Known DLLs or DLL not found in the object file directory.
- m_deps_filespec->Append(FileSpec(dll_name));
+ m_deps_filespec->EmplaceBack(dll_name);
}
}
return m_deps_filespec->GetSize();
OpenPOWER on IntegriCloud