Skip to content

Commit a2f3d7d

Browse files
committed
Remove redundant code (NFC)
This has no effect on the testsuite and was only needed in an early prototype from before debugserver was able to report the correct platform. (cherry picked from commit 2d2a603)
1 parent ea3e220 commit a2f3d7d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -684,15 +684,8 @@ bool DynamicLoaderDarwin::AddModulesUsingImageInfos(
684684
// Update the module's platform with the DYLD info.
685685
ArchSpec dyld_spec = image_infos[idx].GetArchitecture();
686686
if (dyld_spec.GetTriple().getOS() == llvm::Triple::IOS &&
687-
dyld_spec.GetTriple().getEnvironment() == llvm::Triple::MacABI) {
687+
dyld_spec.GetTriple().getEnvironment() == llvm::Triple::MacABI)
688688
image_module_sp->MergeArchitecture(dyld_spec);
689-
const auto &target_triple = target.GetArchitecture().GetTriple();
690-
// If dyld reports the process as being loaded as MACCATALYST,
691-
// force-update the target's architecture to MACCATALYST.
692-
if (!(target_triple.getOS() == llvm::Triple::IOS &&
693-
target_triple.getEnvironment() == llvm::Triple::MacABI))
694-
target.SetArchitecture(dyld_spec);
695-
}
696689
}
697690
}
698691

0 commit comments

Comments
 (0)