diff options
author | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-05 10:19:29 +0000 |
---|---|---|
committer | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-05 10:19:29 +0000 |
commit | 1a6eca243f9274b9b371b7306fa939568ce5c37f (patch) | |
tree | e08f8984bc44b63a79a4e1737a47dd66e86c1850 /lib/DebugInfo | |
parent | 7b62be28cbc6cce31852831570a87d9699fbcecd (diff) | |
download | llvm-1a6eca243f9274b9b371b7306fa939568ce5c37f.tar.gz llvm-1a6eca243f9274b9b371b7306fa939568ce5c37f.tar.bz2 llvm-1a6eca243f9274b9b371b7306fa939568ce5c37f.tar.xz |
[C++11] Replace OwningPtr::take() with OwningPtr::release().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r-- | lib/DebugInfo/DWARFContext.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/DebugInfo/DWARFContext.cpp b/lib/DebugInfo/DWARFContext.cpp index e17387b31d..5cce8df521 100644 --- a/lib/DebugInfo/DWARFContext.cpp +++ b/lib/DebugInfo/DWARFContext.cpp @@ -308,7 +308,7 @@ void DWARFContext::parseCompileUnits() { if (!CU->extract(DIData, &offset)) { break; } - CUs.push_back(CU.take()); + CUs.push_back(CU.release()); offset = CUs.back()->getNextUnitOffset(); } } @@ -327,7 +327,7 @@ void DWARFContext::parseTypeUnits() { &I->second.Relocs, isLittleEndian())); if (!TU->extract(DIData, &offset)) break; - TUs.push_back(TU.take()); + TUs.push_back(TU.release()); offset = TUs.back()->getNextUnitOffset(); } } @@ -346,7 +346,7 @@ void DWARFContext::parseDWOCompileUnits() { if (!DWOCU->extract(DIData, &offset)) { break; } - DWOCUs.push_back(DWOCU.take()); + DWOCUs.push_back(DWOCU.release()); offset = DWOCUs.back()->getNextUnitOffset(); } } @@ -366,7 +366,7 @@ void DWARFContext::parseDWOTypeUnits() { isLittleEndian())); if (!TU->extract(DIData, &offset)) break; - DWOTUs.push_back(TU.take()); + DWOTUs.push_back(TU.release()); offset = DWOTUs.back()->getNextUnitOffset(); } } @@ -636,7 +636,7 @@ DWARFContextInMemory::DWARFContextInMemory(object::ObjectFile *Obj) : // Make data point to uncompressed section contents and save its contents. name = name.substr(1); data = UncompressedSection->getBuffer(); - UncompressedSections.push_back(UncompressedSection.take()); + UncompressedSections.push_back(UncompressedSection.release()); } StringRef *Section = |