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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user