summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Module.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-12-13 22:07:14 +0000
committerSean Callanan <scallanan@apple.com>2012-12-13 22:07:14 +0000
commitbf4b7be68ee9da3cc43fedee101457140d3330cd (patch)
tree504cacce4cac1112fd46c89a9e5f39a3d3c232e4 /lldb/source/Core/Module.cpp
parent3960540e305dd27dc20e5e038f499149ddf5c4db (diff)
downloadbcm5719-llvm-bf4b7be68ee9da3cc43fedee101457140d3330cd.tar.gz
bcm5719-llvm-bf4b7be68ee9da3cc43fedee101457140d3330cd.zip
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
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r--lldb/source/Core/Module.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}
OpenPOWER on IntegriCloud