xref: /openbsd-src/gnu/llvm/lldb/include/lldb/Host/openbsd/HostInfoOpenBSD.h (revision 101d251d5caf88a9341f3045ab62e122abae1b90)
1 //===-- HostInfoOpenBSD.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_openbsd_HostInfoOpenBSD_h_
10 #define lldb_Host_openbsd_HostInfoOpenBSD_h_
11 
12 #include "lldb/Host/posix/HostInfoPosix.h"
13 #include "lldb/Utility/FileSpec.h"
14 #include "llvm/Support/VersionTuple.h"
15 #include <optional>
16 
17 namespace lldb_private {
18 
19 class HostInfoOpenBSD : public HostInfoPosix {
20   friend class HostInfoBase;
21 
22 public:
23   static llvm::VersionTuple GetOSVersion();
24   static std::optional<std::string> GetOSBuildString();
25   static FileSpec GetProgramFileSpec();
26 
27 protected:
28   static bool ComputeSupportExeDirectory(FileSpec &file_spec);
29 };
30 }
31 
32 #endif
33