[Lldb-commits] [lldb] r212509 - Fix a compilation failure caused by a non-const reference.
Zachary Turner
zturner at google.com
Mon Jul 7 21:28:08 PDT 2014
Author: zturner
Date: Mon Jul 7 23:28:07 2014
New Revision: 212509
URL: http://llvm.org/viewvc/llvm-project?rev=212509&view=rev
Log:
Fix a compilation failure caused by a non-const reference.
Modified:
lldb/trunk/include/lldb/Interpreter/CommandOptionValidators.h
lldb/trunk/include/lldb/lldb-private-types.h
lldb/trunk/source/Interpreter/CommandOptionValidators.cpp
Modified: lldb/trunk/include/lldb/Interpreter/CommandOptionValidators.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Interpreter/CommandOptionValidators.h?rev=212509&r1=212508&r2=212509&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Interpreter/CommandOptionValidators.h (original)
+++ lldb/trunk/include/lldb/Interpreter/CommandOptionValidators.h Mon Jul 7 23:28:07 2014
@@ -19,7 +19,7 @@ class ExecutionContext;
class PosixPlatformCommandOptionValidator : public OptionValidator
{
- virtual bool IsValid(Platform &platform, ExecutionContext &target) const;
+ virtual bool IsValid(Platform &platform, const ExecutionContext &target) const;
virtual const char* ShortConditionString() const;
virtual const char* LongConditionString() const;
};
Modified: lldb/trunk/include/lldb/lldb-private-types.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/lldb-private-types.h?rev=212509&r1=212508&r2=212509&view=diff
==============================================================================
--- lldb/trunk/include/lldb/lldb-private-types.h (original)
+++ lldb/trunk/include/lldb/lldb-private-types.h Mon Jul 7 23:28:07 2014
@@ -58,7 +58,7 @@ namespace lldb_private
struct OptionValidator
{
virtual ~OptionValidator() { }
- virtual bool IsValid(Platform &platform, ExecutionContext &target) const = 0;
+ virtual bool IsValid(Platform &platform, const ExecutionContext &target) const = 0;
virtual const char * ShortConditionString() const = 0;
virtual const char * LongConditionString() const = 0;
};
Modified: lldb/trunk/source/Interpreter/CommandOptionValidators.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandOptionValidators.cpp?rev=212509&r1=212508&r2=212509&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandOptionValidators.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandOptionValidators.cpp Mon Jul 7 23:28:07 2014
@@ -15,7 +15,7 @@
using namespace lldb;
using namespace lldb_private;
-bool PosixPlatformCommandOptionValidator::IsValid(Platform &platform, ExecutionContext &target) const
+bool PosixPlatformCommandOptionValidator::IsValid(Platform &platform, const ExecutionContext &target) const
{
llvm::Triple::OSType os = platform.GetSystemArchitecture().GetTriple().getOS();
switch (os)
More information about the lldb-commits
mailing list