[lldb] Refactor GetDeviceSupportDirectoryNames and GetPlatformName (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 30 Nov 2020 23:18:24 +0000 (15:18 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 1 Dec 2020 03:37:12 +0000 (19:37 -0800)
commit173bb3c2eb094920708ab8f61dae2fe22d331773
treec6591bfb7aca304dd1fe7d92bb9563e381e6ccd4
parent011bf4f55630858111e5f0504b3f7390eaf41e09
[lldb] Refactor GetDeviceSupportDirectoryNames and GetPlatformName (NFC)

Both functions are effectively returning a single string literal. Change
the interface to return a llvm::StringRef instead of populating a vector
of std::strings or returning a std::string respectively.
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.cpp
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.h
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleTV.cpp
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleTV.h
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.cpp
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.h
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.cpp
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.h
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp
lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h