================
@@ -1429,3 +1430,40 @@ PlatformDarwin::ResolveSDKPathFromDebugInfo(Module
&module) {
return path_or_err->str();
}
+
+llvm::Expected<std::pair<XcodeSDK, bool>>
+PlatformDarwin::GetSDKPathFromDebugInfo(CompileUnit &unit) {
+ ModuleSP module_sp = unit.CalculateSymbolContextModule();
+ if (!module_sp)
+ return llvm::createStringError("compile unit has no module");
+ SymbolFile *sym_file = module_sp->GetSymbolFile();
+ if (!sym_file)
+ return llvm::createStringError(
+ llvm::formatv("No symbol file available for module '{0}'",
+ module_sp->GetFileSpec().GetFilename()));
+
+ const bool found_mismatch = false;
----------------
adrian-prantl wrote:
@medismailben updated!
https://github.com/llvm/llvm-project/pull/119022
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits