[Lldb-commits] [lldb] [lldb][NFC] Inline ResolveSDKPathFromDebugInfo in one of its call site (PR #146062)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 30 04:22:56 PDT 2025
================
@@ -1130,13 +1130,33 @@ void PlatformDarwin::AddClangModuleCompilationOptionsForSDKType(
if (target) {
if (ModuleSP exe_module_sp = target->GetExecutableModule()) {
- auto path_or_err = ResolveSDKPathFromDebugInfo(*exe_module_sp);
- if (path_or_err) {
- sysroot_spec = FileSpec(*path_or_err);
+ SymbolFile *sym_file = exe_module_sp->GetSymbolFile();
----------------
charles-zablit wrote:
Extracted and refactored the logic a bit to `ResolveSDKPathFromDebugInfo` 👍
https://github.com/llvm/llvm-project/pull/146062
More information about the lldb-commits
mailing list