summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-09-14 15:01:55 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-09-14 15:01:55 +0000
commite1a6074b52f07383144ebc2552712fa5d73b0e58 (patch)
tree36c01fcd0f90d99d70ca850528e7f4fb42a60161 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parent0d4fd5b6680be0fd020c16d4c10f0554a43895f9 (diff)
downloadbcm5719-llvm-e1a6074b52f07383144ebc2552712fa5d73b0e58.tar.gz
bcm5719-llvm-e1a6074b52f07383144ebc2552712fa5d73b0e58.zip
Remove uses of std::auto_ptr, it's going away in C++17.
std::unique_ptr is pretty much a drop-in replacement here. Also remove nullptr checks that are doing nothing. llvm-svn: 313265
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
-rw-r--r--lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
index aca1b6b4b97..0f67ab5f33c 100644
--- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -451,7 +451,7 @@ ObjectFile *ObjectFileELF::CreateMemoryInstance(
if (ELFHeader::MagicBytesMatch(magic)) {
unsigned address_size = ELFHeader::AddressSizeInBytes(magic);
if (address_size == 4 || address_size == 8) {
- std::auto_ptr<ObjectFileELF> objfile_ap(
+ std::unique_ptr<ObjectFileELF> objfile_ap(
new ObjectFileELF(module_sp, data_sp, process_sp, header_addr));
ArchSpec spec;
if (objfile_ap->GetArchitecture(spec) &&
OpenPOWER on IntegriCloud