1 //===-- OptionGroupArchitecture.h -------------------------------*- 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 #ifndef liblldb_OptionGroupArchitecture_h_
11 #define liblldb_OptionGroupArchitecture_h_
15 // Other libraries and framework includes
17 #include "lldb/Interpreter/Options.h"
18 #include "lldb/Core/ArchSpec.h"
20 namespace lldb_private {
22 //-------------------------------------------------------------------------
23 // OptionGroupArchitecture
24 //-------------------------------------------------------------------------
26 class OptionGroupArchitecture : public OptionGroup
30 OptionGroupArchitecture ();
33 ~OptionGroupArchitecture ();
39 virtual const OptionDefinition*
43 SetOptionValue (CommandInterpreter &interpreter,
45 const char *option_value);
48 OptionParsingStarting (CommandInterpreter &interpreter);
51 GetArchitecture (Platform *platform, ArchSpec &arch);
54 ArchitectureWasSpecified () const
56 return !m_arch_str.empty();
59 GetArchitectureName ()
61 if (m_arch_str.empty())
63 return m_arch_str.c_str();
68 std::string m_arch_str; // Save the arch triple in case a platform is specified after the architecture
71 } // namespace lldb_private
73 #endif // liblldb_OptionGroupArchitecture_h_