diff options
author | Greg Clayton <gclayton@apple.com> | 2014-07-10 23:33:37 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2014-07-10 23:33:37 +0000 |
commit | 3f19ada88e24008b24a5db20b7f78f5cff525a0b (patch) | |
tree | 04915a68934f0d4791960d62de0ff182ed0a6ac7 /lldb/source/Core/ArchSpec.cpp | |
parent | 675d401a263572caa66e021630a97b8d9de7efc4 (diff) | |
download | bcm5719-llvm-3f19ada88e24008b24a5db20b7f78f5cff525a0b.tar.gz bcm5719-llvm-3f19ada88e24008b24a5db20b7f78f5cff525a0b.zip |
Cleanup the iOS simulator code.
Fixes include:
- Don't say that "<arch>-apple-ios" is compatible with "<arch>-apple-macosx"
- Fixed DynamicLoaderMacOSXDYLD so specify an architecture that was converted solely from a cputype and subtype, just specify the file + UUID.
- Fixed PlatformiOSSimulator::GetSupportedArchitectureAtIndex() so it returns the correct archs
- Fixed SymbolFileDWARFDebugMap to load .o files correctly by just specifying the architecture without the vendor and OS now that "<arch>-apple-ios" is not compatible with "<arch>-apple-macosx" so we can load .o files correctly for DWARF with debug map
- Fixed the coded in TargetList::CreateTarget() so it does the right thing with an underspecified triple where just the arch is specified.
llvm-svn: 212783
Diffstat (limited to 'lldb/source/Core/ArchSpec.cpp')
-rw-r--r-- | lldb/source/Core/ArchSpec.cpp | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/lldb/source/Core/ArchSpec.cpp b/lldb/source/Core/ArchSpec.cpp index f6c462c321f..97ae4971239 100644 --- a/lldb/source/Core/ArchSpec.cpp +++ b/lldb/source/Core/ArchSpec.cpp @@ -849,33 +849,10 @@ ArchSpec::IsEqualTo (const ArchSpec& rhs, bool exact_match) const return false; } - bool ios_simulator_compatible = false; - // Check for iOS desktop simulator matches where: - // x86_64-apple-ios is compatible with x86_64-apple-macosx - // i386-apple-ios is compatible with i386-apple-macosx - if (lhs_triple_vendor == llvm::Triple::Apple) - { - const llvm::Triple::ArchType lhs_arch = lhs_triple.getArch(); - if (lhs_arch == llvm::Triple::x86_64 || - lhs_arch == llvm::Triple::x86) - { - if ((lhs_triple_os == llvm::Triple::MacOSX && rhs_triple_os == llvm::Triple::IOS ) || - (lhs_triple_os == llvm::Triple::IOS && rhs_triple_os == llvm::Triple::MacOSX )) - { - ios_simulator_compatible = true; - } - - } - } - - // Only fail if both os types are not unknown or if we determined the triples - // match for x86_64 or x86 iOS simulator - if (!ios_simulator_compatible) - { - if (lhs_triple_os != llvm::Triple::UnknownOS && - rhs_triple_os != llvm::Triple::UnknownOS) - return false; - } + // Only fail if both os types are not unknown + if (lhs_triple_os != llvm::Triple::UnknownOS && + rhs_triple_os != llvm::Triple::UnknownOS) + return false; } const llvm::Triple::EnvironmentType lhs_triple_env = lhs_triple.getEnvironment(); |