summaryrefslogtreecommitdiff
path: root/include/lldb/Initialization/SystemInitializer.h
blob: b665b999721447e5378bf265f82a1dc346f3b43e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//===-- SystemInitializer.h -------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef LLDB_INITIALIZATION_SYSTEM_INITIALIZER_H
#define LLDB_INITIALIZATION_SYSTEM_INITIALIZER_H

#include "llvm/Support/Error.h"

#include <string>

namespace lldb_private {

struct InitializerOptions {
  bool reproducer_capture = false;
  bool reproducer_replay = false;
  std::string reproducer_path;
};

class SystemInitializer {
public:
  SystemInitializer();
  virtual ~SystemInitializer();

  virtual llvm::Error Initialize(const InitializerOptions &options) = 0;
  virtual void Terminate() = 0;
};
}

#endif