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/Host/macosx/Symbols.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/source/Host/macosx/Symbols.cpp') diff --git a/lldb/source/Host/macosx/Symbols.cpp b/lldb/source/Host/macosx/Symbols.cpp index a358336b4ee..e696d2782c8 100644 --- a/lldb/source/Host/macosx/Symbols.cpp +++ b/lldb/source/Host/macosx/Symbols.cpp @@ -83,7 +83,7 @@ SkinnyMachOFileContainsArchAndUUID { ArchSpec file_arch(eArchTypeMachO, cputype, cpusubtype); - if (file_arch != *arch) + if (file_arch.IsCompatibleMatch(*arch)) return false; } @@ -181,7 +181,7 @@ UniversalMachOFileContainsArchAndUUID if (arch) { ArchSpec fat_arch(eArchTypeMachO, arch_cputype, arch_cpusubtype); - if (fat_arch != *arch) + if (fat_arch.IsCompatibleMatch(*arch)) continue; } @@ -797,7 +797,7 @@ Symbols::DownloadObjectAndSymbolFile (ModuleSpec &module_spec, bool force_lookup ModuleSpec curr_module_spec; if (GetModuleSpecInfoFromUUIDDictionary (values[i], curr_module_spec)) { - if (module_spec.GetArchitecture() == curr_module_spec.GetArchitecture()) + if (module_spec.GetArchitecture().IsCompatibleMatch(curr_module_spec.GetArchitecture())) { module_spec = curr_module_spec; return true; -- cgit v1.2.3