1 //===-- CommandOptionValidators.cpp -----------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "lldb/Interpreter/CommandOptionValidators.h"
12 #include "lldb/Interpreter/CommandInterpreter.h"
13 #include "lldb/Target/Platform.h"
16 using namespace lldb_private;
18 bool PosixPlatformCommandOptionValidator::IsValid(
19 Platform &platform, const ExecutionContext &target) const {
20 llvm::Triple::OSType os =
21 platform.GetSystemArchitecture().GetTriple().getOS();
23 // Are there any other platforms that are not POSIX-compatible?
24 case llvm::Triple::Win32:
31 const char *PosixPlatformCommandOptionValidator::ShortConditionString() const {
35 const char *PosixPlatformCommandOptionValidator::LongConditionString() const {
36 return "Option only valid for POSIX-compliant hosts.";