Skip to content

Commit 2d2a603

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.
1 parent 4c53d48 commit 2d2a603

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
@@ -685,15 +685,8 @@ bool DynamicLoaderDarwin::AddModulesUsingImageInfos(
685685
// Update the module's platform with the DYLD info.
686686
ArchSpec dyld_spec = image_infos[idx].GetArchitecture();
687687
if (dyld_spec.GetTriple().getOS() == llvm::Triple::IOS &&
688-
dyld_spec.GetTriple().getEnvironment() == llvm::Triple::MacABI) {
688+
dyld_spec.GetTriple().getEnvironment() == llvm::Triple::MacABI)
689689
image_module_sp->MergeArchitecture(dyld_spec);
690-
const auto &target_triple = target.GetArchitecture().GetTriple();
691-
// If dyld reports the process as being loaded as MACCATALYST,
692-
// force-update the target's architecture to MACCATALYST.
693-
if (!(target_triple.getOS() == llvm::Triple::IOS &&
694-
target_triple.getEnvironment() == llvm::Triple::MacABI))
695-
target.SetArchitecture(dyld_spec);
696-
}
697690
}
698691
}
699692

0 commit comments

Comments
 (0)