diff options
author | Greg Clayton <gclayton@apple.com> | 2012-02-25 06:56:35 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-02-25 06:56:35 +0000 |
commit | 722cec2957b44766879b936c0b2dfb9d2f1a5e4f (patch) | |
tree | 1b5cfb8ee61f03a39a0a6d451f0e3ac1ee9edd32 /lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp | |
parent | a4d6bc9ff85fc4eb979765f3ea8bd53fa4f3496a (diff) | |
download | bcm5719-llvm-722cec2957b44766879b936c0b2dfb9d2f1a5e4f.tar.gz bcm5719-llvm-722cec2957b44766879b936c0b2dfb9d2f1a5e4f.zip |
<rdar://problem/9886712>
Added a dedicated platform for the iOS simulator. This helps us to find the
correct files for a simulator binary before running and helps us select the
right arch (i386 only) for files when we load them.
llvm-svn: 151436
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp')
-rw-r--r-- | lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp index 3ca4dd604cf..6262c59c133 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp @@ -133,26 +133,8 @@ PlatformMacOSX::GetSupportedArchitectureAtIndex (uint32_t idx, ArchSpec &arch) { #if defined (__arm__) return ARMGetSupportedArchitectureAtIndex (idx, arch); +#else + return x86GetSupportedArchitectureAtIndex (idx, arch); #endif - - if (idx == 0) - { - arch = Host::GetArchitecture (Host::eSystemDefaultArchitecture); - return arch.IsValid(); - } - else if (idx == 1) - { - ArchSpec platform_arch (Host::GetArchitecture (Host::eSystemDefaultArchitecture)); - ArchSpec platform_arch64 (Host::GetArchitecture (Host::eSystemDefaultArchitecture64)); - if (platform_arch == platform_arch64) - { - // This macosx platform supports both 32 and 64 bit. Since we already - // returned the 64 bit arch for idx == 0, return the 32 bit arch - // for idx == 1 - arch = Host::GetArchitecture (Host::eSystemDefaultArchitecture32); - return arch.IsValid(); - } - } - return false; } |