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/Core/Module.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Core/Module.cpp') diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index ffc9f7f2dc9..64426992c96 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -1202,7 +1202,7 @@ Module::SetArchitecture (const ArchSpec &new_arch) m_arch = new_arch; return true; } - return m_arch == new_arch; + return m_arch.IsExactMatch(new_arch); } bool @@ -1268,7 +1268,7 @@ Module::MatchesModuleSpec (const ModuleSpec &module_ref) const ArchSpec &arch = module_ref.GetArchitecture(); if (arch.IsValid()) { - if (m_arch != arch) + if (!m_arch.IsCompatibleMatch(arch)) return false; } -- cgit v1.2.3