Fix it so we always get major, minor and update from the version in ObjectFileMachO::GetMinimumOSVersion(...) and ObjectFileMachO::GetSDKVersion(...).

<rdar://problem/19697053>

llvm-svn: 228092
This commit is contained in:
Greg Clayton 2015-02-04 00:40:25 +00:00
parent 5a9685dba6
commit 8031d28823
1 changed files with 4 additions and 12 deletions

View File

@ -5203,12 +5203,8 @@ ObjectFileMachO::GetMinimumOSVersion (uint32_t *versions, uint32_t num_versions)
if (xxxx)
{
m_min_os_versions.push_back(xxxx);
if (yy)
{
m_min_os_versions.push_back(yy);
if (zz)
m_min_os_versions.push_back(zz);
}
m_min_os_versions.push_back(yy);
m_min_os_versions.push_back(zz);
}
success = true;
}
@ -5265,12 +5261,8 @@ ObjectFileMachO::GetSDKVersion(uint32_t *versions, uint32_t num_versions)
if (xxxx)
{
m_sdk_versions.push_back(xxxx);
if (yy)
{
m_sdk_versions.push_back(yy);
if (zz)
m_sdk_versions.push_back(zz);
}
m_sdk_versions.push_back(yy);
m_sdk_versions.push_back(zz);
}
success = true;
}