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.

<rdar://problem/12856749>

llvm-svn: 170152
This commit is contained in:
Sean Callanan
2012-12-13 22:07:14 +00:00
parent 3960540e30
commit bf4b7be68e
13 changed files with 37 additions and 72 deletions

View File

@@ -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;
}