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/Commands/CommandObjectProcess.cpp | |
parent | 3960540e305dd27dc20e5e038f499149ddf5c4db (diff) | |
download | llvm-bf4b7be68ee9da3cc43fedee101457140d3330cd.zip llvm-bf4b7be68ee9da3cc43fedee101457140d3330cd.tar.gz llvm-bf4b7be68ee9da3cc43fedee101457140d3330cd.tar.bz2 |
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/Commands/CommandObjectProcess.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectProcess.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index 1996cee..9b5e205 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -642,7 +642,7 @@ protected: { result.AppendMessageWithFormat ("Architecture set to: %s.\n", target->GetArchitecture().GetTriple().getTriple().c_str()); } - else if (old_arch_spec != target->GetArchitecture()) + else if (!old_arch_spec.IsExactMatch(target->GetArchitecture())) { result.AppendWarningWithFormat("Architecture changed from %s to %s.\n", old_arch_spec.GetTriple().getTriple().c_str(), |