LLDB mainline
HostInfoLinux.h
Go to the documentation of this file.
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
14#include "llvm/ADT/StringRef.h"
15#include "llvm/Support/VersionTuple.h"
16
17#include <optional>
18
19namespace lldb_private {
20
22 friend class HostInfoBase;
23
24public:
25 static void Initialize(SharedLibraryDirectoryHelper *helper = nullptr);
26 static void Terminate();
27
28 static llvm::StringRef GetDistributionId();
30
31protected:
32 static void ComputeHostArchitectureSupport(ArchSpec &arch_32,
33 ArchSpec &arch_64);
34};
35} // namespace lldb_private
36
37#endif
An architecture specification class.
Definition: ArchSpec.h:31
A file utility class.
Definition: FileSpec.h:56
void(FileSpec &this_file) SharedLibraryDirectoryHelper
A helper function for determining the liblldb location.
Definition: HostInfoBase.h:63
static FileSpec GetProgramFileSpec()
static void ComputeHostArchitectureSupport(ArchSpec &arch_32, ArchSpec &arch_64)
static void Initialize(SharedLibraryDirectoryHelper *helper=nullptr)
static llvm::StringRef GetDistributionId()
A class that represents a running process on the host machine.