[Lldb-commits] [lldb] r228092 - Fix it so we always get major, minor and update from the version in ObjectFileMachO::GetMinimumOSVersion(...) and ObjectFileMachO::GetSDKVersion(...).
Greg Clayton
gclayton at apple.com
Tue Feb 3 16:40:25 PST 2015
Author: gclayton
Date: Tue Feb 3 18:40:25 2015
New Revision: 228092
URL: http://llvm.org/viewvc/llvm-project?rev=228092&view=rev
Log:
Fix it so we always get major, minor and update from the version in ObjectFileMachO::GetMinimumOSVersion(...) and ObjectFileMachO::GetSDKVersion(...).
<rdar://problem/19697053>
Modified:
lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
Modified: lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp?rev=228092&r1=228091&r2=228092&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp (original)
+++ lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp Tue Feb 3 18:40:25 2015
@@ -5203,12 +5203,8 @@ ObjectFileMachO::GetMinimumOSVersion (ui
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
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;
}
More information about the lldb-commits
mailing list