diff options
author | Sean Callanan <scallanan@apple.com> | 2012-12-13 22:07:14 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-12-13 22:07:14 +0000 |
commit | bf4b7be68ee9da3cc43fedee101457140d3330cd (patch) | |
tree | 504cacce4cac1112fd46c89a9e5f39a3d3c232e4 /lldb/source/Target/Process.cpp | |
parent | 3960540e305dd27dc20e5e038f499149ddf5c4db (diff) | |
download | bcm5719-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/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 7ed4cb09b9a..5394923af39 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -831,7 +831,7 @@ ProcessInstanceInfoMatch::Matches (const ProcessInstanceInfo &proc_info) const return false; if (m_match_info.GetArchitecture().IsValid() && - m_match_info.GetArchitecture() != proc_info.GetArchitecture()) + !m_match_info.GetArchitecture().IsCompatibleMatch(proc_info.GetArchitecture())) return false; return true; } @@ -2971,7 +2971,7 @@ Process::CompleteAttach () ProcessInstanceInfo process_info; platform_sp->GetProcessInfo (GetID(), process_info); const ArchSpec &process_arch = process_info.GetArchitecture(); - if (process_arch.IsValid() && m_target.GetArchitecture() != process_arch) + if (process_arch.IsValid() && !m_target.GetArchitecture().IsExactMatch(process_arch)) m_target.SetArchitecture (process_arch); } } |