forked from OSchip/llvm-project
Fix a compilation failure caused by a non-const reference.
llvm-svn: 212509
This commit is contained in:
parent
afba553ede
commit
24f3dee6ca
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue