[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
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user