xref: /llvm-project/lldb/include/lldb/Host/linux/HostInfoLinux.h (revision 385b144c9477de6a4598bd08ce4f2883aeb236b9)
1 //===-- HostInfoLinux.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_linux_HostInfoLinux_h_
10 #define lldb_Host_linux_HostInfoLinux_h_
11 
12 #include "lldb/Host/posix/HostInfoPosix.h"
13 #include "lldb/Utility/FileSpec.h"
14 #include "llvm/ADT/StringRef.h"
15 #include "llvm/Support/VersionTuple.h"
16 
17 #include <optional>
18 
19 namespace lldb_private {
20 
21 class HostInfoLinux : public HostInfoPosix {
22   friend class HostInfoBase;
23 
24 public:
25   static void Initialize(SharedLibraryDirectoryHelper *helper = nullptr);
26   static void Terminate();
27 
28   static llvm::StringRef GetDistributionId();
29   static FileSpec GetProgramFileSpec();
30 
31 protected:
32   static void ComputeHostArchitectureSupport(ArchSpec &arch_32,
33                                              ArchSpec &arch_64);
34 };
35 } // namespace lldb_private
36 
37 #endif
38