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;
};
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;
};
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)