forked from OSchip/llvm-project
Fixed a warning in PlatformiOSSimulator where GetSDKDirectory was hiding recently added virtual function. Renamed GetSDKDirectory to GetSDKsDirectory to fix the issue. GetSDKsDirectory is a better fit because it finds the directory that contains all SDKs, not the current one.
llvm-svn: 193707
This commit is contained in:
parent
00e24e48b6
commit
c1ae724757
|
@ -162,7 +162,7 @@ void
|
|||
PlatformiOSSimulator::GetStatus (Stream &strm)
|
||||
{
|
||||
Platform::GetStatus (strm);
|
||||
const char *sdk_directory = GetSDKDirectory();
|
||||
const char *sdk_directory = GetSDKsDirectory();
|
||||
if (sdk_directory)
|
||||
strm.Printf (" SDK Path: \"%s\"\n", sdk_directory);
|
||||
else
|
||||
|
@ -268,7 +268,7 @@ EnumerateDirectoryCallback (void *baton, FileSpec::FileType file_type, const Fil
|
|||
|
||||
|
||||
const char *
|
||||
PlatformiOSSimulator::GetSDKDirectory()
|
||||
PlatformiOSSimulator::GetSDKsDirectory()
|
||||
{
|
||||
if (m_sdk_directory.empty())
|
||||
{
|
||||
|
@ -325,7 +325,7 @@ PlatformiOSSimulator::GetSymbolFile (const FileSpec &platform_file,
|
|||
{
|
||||
char resolved_path[PATH_MAX];
|
||||
|
||||
const char * sdk_dir = GetSDKDirectory();
|
||||
const char * sdk_dir = GetSDKsDirectory();
|
||||
if (sdk_dir)
|
||||
{
|
||||
::snprintf (resolved_path,
|
||||
|
|
|
@ -105,7 +105,7 @@ protected:
|
|||
//std::vector<FileSpec> m_device_support_os_dirs;
|
||||
|
||||
const char *
|
||||
GetSDKDirectory();
|
||||
GetSDKsDirectory();
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN (PlatformiOSSimulator);
|
||||
|
|
Loading…
Reference in New Issue