From bf4b7be68ee9da3cc43fedee101457140d3330cd Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Thu, 13 Dec 2012 22:07:14 +0000 Subject: Removed the == and != operators from ArchSpec, since equality can be strict or loose and we want code to explicitly choose one or the other. Also renamed the Compare function to IsEqualTo, to avoid confusion. llvm-svn: 170152 --- lldb/source/Target/Platform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Target/Platform.cpp') diff --git a/lldb/source/Target/Platform.cpp b/lldb/source/Target/Platform.cpp index 86ef2a022ea..22fb9978711 100644 --- a/lldb/source/Target/Platform.cpp +++ b/lldb/source/Target/Platform.cpp @@ -688,7 +688,7 @@ Platform::IsCompatibleArchitecture (const ArchSpec &arch, ArchSpec *compatible_a ArchSpec platform_arch; for (uint32_t arch_idx=0; GetSupportedArchitectureAtIndex (arch_idx, platform_arch); ++arch_idx) { - if (arch == platform_arch) + if (arch.IsCompatibleMatch(platform_arch)) { if (compatible_arch_ptr) *compatible_arch_ptr = platform_arch; -- cgit v1.2.3