From bf4b7be68ee9da3cc43fedee101457140d3330cd Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Thu, 13 Dec 2012 22:07:14 +0000 Subject: 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. llvm-svn: 170152 --- lldb/source/Commands/CommandObjectProcess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Commands/CommandObjectProcess.cpp') 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(), -- cgit v1.1