File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
source/Plugins/Platform/MacOSX Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -432,9 +432,7 @@ class Platform : public PluginInterface {
432
432
return lldb_private::ConstString ();
433
433
}
434
434
435
- virtual std::string GetSDKPath (lldb_private::XcodeSDK sdk) {
436
- return {};
437
- }
435
+ virtual llvm::StringRef GetSDKPath (lldb_private::XcodeSDK sdk) { return {}; }
438
436
439
437
const std::string &GetRemoteURL () const { return m_remote_url; }
440
438
Original file line number Diff line number Diff line change @@ -1761,12 +1761,12 @@ PlatformDarwin::FindXcodeContentsDirectoryInPath(llvm::StringRef path) {
1761
1761
return {};
1762
1762
}
1763
1763
1764
- std::string PlatformDarwin::GetSDKPath (XcodeSDK sdk) {
1764
+ llvm::StringRef PlatformDarwin::GetSDKPath (XcodeSDK sdk) {
1765
1765
std::lock_guard<std::mutex> guard (m_sdk_path_mutex);
1766
1766
std::string &path = m_sdk_path[sdk.GetString ()];
1767
- if (! path.empty ())
1768
- return path;
1769
- return HostInfo::GetXcodeSDK (sdk) ;
1767
+ if (path.empty ())
1768
+ path = HostInfo::GetXcodeSDK (sdk) ;
1769
+ return path ;
1770
1770
}
1771
1771
1772
1772
FileSpec PlatformDarwin::GetXcodeContentsDirectory () {
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ class PlatformDarwin : public PlatformPOSIX {
90
90
llvm::Expected<lldb_private::StructuredData::DictionarySP>
91
91
FetchExtendedCrashInformation (lldb_private::Process &process) override ;
92
92
93
- std::string GetSDKPath (lldb_private::XcodeSDK sdk) override ;
93
+ llvm::StringRef GetSDKPath (lldb_private::XcodeSDK sdk) override ;
94
94
95
95
static lldb_private::FileSpec GetXcodeContentsDirectory ();
96
96
static lldb_private::FileSpec GetXcodeDeveloperDirectory ();
You can’t perform that action at this time.
0 commit comments