LLDB  mainline
HostInfoMacOSX.h
Go to the documentation of this file.
1 //===-- HostInfoMacOSX.h ----------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef lldb_Host_macosx_HostInfoMacOSX_h_
10 #define lldb_Host_macosx_HostInfoMacOSX_h_
11 
13 #include "lldb/Utility/FileSpec.h"
14 #include "llvm/Support/VersionTuple.h"
15 
16 namespace lldb_private {
17 
18 class ArchSpec;
19 
20 class HostInfoMacOSX : public HostInfoPosix {
21  friend class HostInfoBase;
22 
23 private:
24  // Static class, unconstructable.
26  ~HostInfoMacOSX();
27 
28 public:
29  static llvm::VersionTuple GetOSVersion();
30  static bool GetOSBuildString(std::string &s);
31  static bool GetOSKernelDescription(std::string &s);
33 
34 protected:
35  static bool ComputeSupportExeDirectory(FileSpec &file_spec);
36  static void ComputeHostArchitectureSupport(ArchSpec &arch_32,
37  ArchSpec &arch_64);
38  static bool ComputeHeaderDirectory(FileSpec &file_spec);
39  static bool ComputeSystemPluginsDirectory(FileSpec &file_spec);
40  static bool ComputeUserPluginsDirectory(FileSpec &file_spec);
41 };
42 }
43 
44 #endif
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
static FileSpec GetProgramFileSpec()
A file utility class.
Definition: FileSpec.h:55
An architecture specification class.
Definition: ArchSpec.h:32
static bool GetOSBuildString(std::string &s)
static llvm::VersionTuple GetOSVersion()
static bool GetOSKernelDescription(std::string &s)
static bool ComputeUserPluginsDirectory(FileSpec &file_spec)
static void ComputeHostArchitectureSupport(ArchSpec &arch_32, ArchSpec &arch_64)
static bool ComputeHeaderDirectory(FileSpec &file_spec)
static bool ComputeSystemPluginsDirectory(FileSpec &file_spec)
static bool ComputeSupportExeDirectory(FileSpec &file_spec)