diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-14 22:19:23 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-14 22:19:23 +0000 |
commit | a8f3ae7c9cefa8296d119f92ca444087cdccf712 (patch) | |
tree | 8bef9bbcd46822f1697895ff3e8da25d0cda1bc9 /lldb/source/Plugins/ObjectFile | |
parent | 1737f71322e3d440dcee74ef06640ad01945f3b9 (diff) | |
download | bcm5719-llvm-a8f3ae7c9cefa8296d119f92ca444087cdccf712.tar.gz bcm5719-llvm-a8f3ae7c9cefa8296d119f92ca444087cdccf712.zip |
[LLDB] Migrate llvm::make_unique to std::make_unique
Now that we've moved to C++14, we no longer need the llvm::make_unique
implementation from STLExtras.h. This patch is a mechanical replacement
of (hopefully) all the llvm::make_unique instances across the monorepo.
Differential revision: https://reviews.llvm.org/D66259
llvm-svn: 368933
Diffstat (limited to 'lldb/source/Plugins/ObjectFile')
4 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Breakpad/ObjectFileBreakpad.cpp b/lldb/source/Plugins/ObjectFile/Breakpad/ObjectFileBreakpad.cpp index f895e9cbc2e..3b9e0e2092a 100644 --- a/lldb/source/Plugins/ObjectFile/Breakpad/ObjectFileBreakpad.cpp +++ b/lldb/source/Plugins/ObjectFile/Breakpad/ObjectFileBreakpad.cpp @@ -127,7 +127,7 @@ Symtab *ObjectFileBreakpad::GetSymtab() { void ObjectFileBreakpad::CreateSections(SectionList &unified_section_list) { if (m_sections_up) return; - m_sections_up = llvm::make_unique<SectionList>(); + m_sections_up = std::make_unique<SectionList>(); llvm::Optional<Record::Kind> current_section; offset_t section_start; diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp index 6cdf4017d27..e507f0e4d74 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp @@ -1762,7 +1762,7 @@ void ObjectFileELF::CreateSections(SectionList &unified_section_list) { if (m_sections_up) return; - m_sections_up = llvm::make_unique<SectionList>(); + m_sections_up = std::make_unique<SectionList>(); VMAddressProvider regular_provider(GetType(), "PT_LOAD"); VMAddressProvider tls_provider(GetType(), "PT_TLS"); diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp index bfb732b836f..d3027ebe73d 100644 --- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp +++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp @@ -874,7 +874,7 @@ ObjectFile *ObjectFileMachO::CreateInstance(const lldb::ModuleSP &module_sp, return nullptr; data_offset = 0; } - auto objfile_up = llvm::make_unique<ObjectFileMachO>( + auto objfile_up = std::make_unique<ObjectFileMachO>( module_sp, data_sp, data_offset, file, file_offset, length); if (!objfile_up || !objfile_up->ParseHeader()) return nullptr; diff --git a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp index d2dd934c357..0328931959d 100644 --- a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp +++ b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp @@ -133,7 +133,7 @@ ObjectFile *ObjectFilePECOFF::CreateInstance(const lldb::ModuleSP &module_sp, return nullptr; } - auto objfile_up = llvm::make_unique<ObjectFilePECOFF>( + auto objfile_up = std::make_unique<ObjectFilePECOFF>( module_sp, data_sp, data_offset, file, file_offset, length); if (!objfile_up || !objfile_up->ParseHeader()) return nullptr; @@ -150,7 +150,7 @@ ObjectFile *ObjectFilePECOFF::CreateMemoryInstance( const lldb::ProcessSP &process_sp, lldb::addr_t header_addr) { if (!data_sp || !ObjectFilePECOFF::MagicBytesMatch(data_sp)) return nullptr; - auto objfile_up = llvm::make_unique<ObjectFilePECOFF>( + auto objfile_up = std::make_unique<ObjectFilePECOFF>( module_sp, data_sp, process_sp, header_addr); if (objfile_up.get() && objfile_up->ParseHeader()) { return objfile_up.release(); @@ -524,7 +524,7 @@ DataExtractor ObjectFilePECOFF::ReadImageData(uint32_t offset, size_t size) { ProcessSP process_sp(m_process_wp.lock()); DataExtractor data; if (process_sp) { - auto data_up = llvm::make_unique<DataBufferHeap>(size, 0); + auto data_up = std::make_unique<DataBufferHeap>(size, 0); Status readmem_error; size_t bytes_read = process_sp->ReadMemory(m_image_base + offset, data_up->GetBytes(), |