1 //===-- SystemInitializerCommon.h -------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #ifndef LLDB_INITIALIZATION_SYSTEM_INITIALIZER_COMMON_H 11 #define LLDB_INITIALIZATION_SYSTEM_INITIALIZER_COMMON_H 12 13 #include "SystemInitializer.h" 14 15 namespace lldb_private { 16 //------------------------------------------------------------------ 17 /// Initializes common lldb functionality. 18 /// 19 /// This class is responsible for initializing a subset of lldb 20 /// useful to both debug servers and debug clients. Debug servers 21 /// do not use all of LLDB and desire small binary sizes, so this 22 /// functionality is separate. This class is used by constructing 23 /// an instance of SystemLifetimeManager with this class passed to 24 /// the constructor. 25 //------------------------------------------------------------------ 26 class SystemInitializerCommon : public SystemInitializer { 27 public: 28 SystemInitializerCommon(); 29 ~SystemInitializerCommon() override; 30 31 llvm::Error Initialize(const InitializerOptions &options) override; 32 void Terminate() override; 33 }; 34 35 } // namespace lldb_private 36 37 #endif // LLDB_INITIALIZATION_SYSTEM_INITIALIZER_COMMON_H 38