mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[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
This commit is contained in:
@@ -315,7 +315,7 @@ LLVMSymbolizer::getOrCreateBinary(const std::string &Path) {
|
||||
if (!error(BinaryOrErr.getError())) {
|
||||
OwningPtr<Binary> ParsedBinary(BinaryOrErr.get());
|
||||
// Check if it's a universal binary.
|
||||
Bin = ParsedBinary.take();
|
||||
Bin = ParsedBinary.release();
|
||||
ParsedBinariesAndObjects.push_back(Bin);
|
||||
if (Bin->isMachO() || Bin->isMachOUniversalBinary()) {
|
||||
// On Darwin we may find DWARF in separate object file in
|
||||
@@ -363,7 +363,7 @@ LLVMSymbolizer::getObjectFileFromBinary(Binary *Bin, const std::string &ArchName
|
||||
return I->second;
|
||||
OwningPtr<ObjectFile> ParsedObj;
|
||||
if (!UB->getObjectForArch(Triple(ArchName).getArch(), ParsedObj)) {
|
||||
Res = ParsedObj.take();
|
||||
Res = ParsedObj.release();
|
||||
ParsedBinariesAndObjects.push_back(Res);
|
||||
}
|
||||
ObjectFileForArch[std::make_pair(UB, ArchName)] = Res;
|
||||
|
Reference in New Issue
Block a user