Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:49

0001 //===-- SystemInitializerCommon.h -------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_INITIALIZATION_SYSTEMINITIALIZERCOMMON_H
0010 #define LLDB_INITIALIZATION_SYSTEMINITIALIZERCOMMON_H
0011 
0012 #include "SystemInitializer.h"
0013 #include "lldb/Host/HostInfo.h"
0014 
0015 namespace lldb_private {
0016 /// Initializes common lldb functionality.
0017 ///
0018 /// This class is responsible for initializing a subset of lldb
0019 /// useful to both debug servers and debug clients.  Debug servers
0020 /// do not use all of LLDB and desire small binary sizes, so this
0021 /// functionality is separate.  This class is used by constructing
0022 /// an instance of SystemLifetimeManager with this class passed to
0023 /// the constructor.
0024 class SystemInitializerCommon : public SystemInitializer {
0025 public:
0026   SystemInitializerCommon(HostInfo::SharedLibraryDirectoryHelper *helper);
0027   ~SystemInitializerCommon() override;
0028 
0029   llvm::Error Initialize() override;
0030   void Terminate() override;
0031 
0032 private:
0033   HostInfo::SharedLibraryDirectoryHelper *m_shlib_dir_helper;
0034 };
0035 
0036 } // namespace lldb_private
0037 
0038 #endif // LLDB_INITIALIZATION_SYSTEMINITIALIZERCOMMON_H