1 //===-- SBInitializerOptions.cpp --------------------------------*- 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 #include "lldb/API/SBInitializerOptions.h"
11 #include "lldb/Initialization/SystemInitializer.h"
12 
13 using namespace lldb;
14 using namespace lldb_private;
15 
16 SBInitializerOptions::SBInitializerOptions(const SBInitializerOptions &rhs) {
17   m_opaque_up.reset(new InitializerOptions());
18   *(m_opaque_up.get()) = rhs.ref();
19 }
20 
21 const SBInitializerOptions &SBInitializerOptions::
22 operator=(const SBInitializerOptions &rhs) {
23   if (this != &rhs) {
24     this->ref() = rhs.ref();
25   }
26   return *this;
27 }
28 
29 SBInitializerOptions::~SBInitializerOptions() {}
30 
31 SBInitializerOptions::SBInitializerOptions() {
32   m_opaque_up.reset(new InitializerOptions());
33 }
34 
35 void SBInitializerOptions::SetCaptureReproducer(bool b) {
36   m_opaque_up->reproducer_capture = b;
37 }
38 
39 void SBInitializerOptions::SetReplayReproducer(bool b) {
40   m_opaque_up->reproducer_replay = b;
41 }
42 
43 void SBInitializerOptions::SetReproducerPath(const char *path) {
44   m_opaque_up->reproducer_path = path;
45 }
46 
47 InitializerOptions &SBInitializerOptions::ref() const {
48   return *(m_opaque_up.get());
49 }
50