|
18 | 18 | #include "lldb/Core/Section.h"
|
19 | 19 | #include "lldb/Host/FileSystem.h"
|
20 | 20 | #include "lldb/Host/Host.h"
|
| 21 | +#include "lldb/Host/HostInfo.h" |
21 | 22 | #include "lldb/Interpreter/CommandInterpreter.h"
|
22 | 23 | #include "lldb/Interpreter/ScriptInterpreter.h"
|
23 | 24 | #include "lldb/Symbol/CompileUnit.h"
|
|
33 | 34 | #include "lldb/Symbol/TypeMap.h"
|
34 | 35 | #include "lldb/Symbol/TypeSystem.h"
|
35 | 36 | #include "lldb/Target/Language.h"
|
36 |
| -#include "lldb/Target/Platform.h" |
37 | 37 | #include "lldb/Target/Process.h"
|
38 | 38 | #include "lldb/Target/Target.h"
|
39 | 39 | #include "lldb/Utility/DataBufferHeap.h"
|
@@ -1598,12 +1598,10 @@ bool Module::RemapSourceFile(llvm::StringRef path,
|
1598 | 1598 |
|
1599 | 1599 | void Module::RegisterXcodeSDK(llvm::StringRef sdk_name, llvm::StringRef sysroot) {
|
1600 | 1600 | XcodeSDK sdk(sdk_name.str());
|
1601 |
| - PlatformSP module_platform = |
1602 |
| - Platform::GetPlatformForArchitecture(GetArchitecture(), nullptr); |
1603 |
| - ConstString sdk_path(module_platform->GetSDKPath(sdk)); |
| 1601 | + ConstString sdk_path(HostInfo::GetXcodeSDKPath(sdk)); |
1604 | 1602 | if (!sdk_path)
|
1605 | 1603 | return;
|
1606 |
| - // If merged SDK changed for a previously registered source path, update it. |
| 1604 | + // If the SDK changed for a previously registered source path, update it. |
1607 | 1605 | // This could happend with -fdebug-prefix-map, otherwise it's unlikely.
|
1608 | 1606 | ConstString sysroot_cs(sysroot);
|
1609 | 1607 | if (!m_source_mappings.Replace(sysroot_cs, sdk_path, true))
|
|
0 commit comments