LLDB mainline
DynamicLoaderDarwinProperties.cpp
Go to the documentation of this file.
1//===-- DynamicLoaderDarwinProperties.cpp ---------------------------------===//
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
10
11using namespace lldb_private;
12
13#define LLDB_PROPERTIES_dynamicloaderdarwin_experimental
14#include "DynamicLoaderDarwinProperties.inc"
15
16enum {
17#define LLDB_PROPERTIES_dynamicloaderdarwin_experimental
18#include "DynamicLoaderDarwinPropertiesEnum.inc"
19};
20
22 static constexpr llvm::StringLiteral g_setting_name("darwin");
23 return g_setting_name;
24}
25
27 : Properties(std::make_shared<OptionValueProperties>(
28 GetExperimentalSettingsName())) {
29 m_collection_sp->Initialize(g_dynamicloaderdarwin_experimental_properties);
30}
31
33 : Properties(std::make_shared<OptionValueProperties>(GetSettingName())),
35 m_collection_sp->AppendProperty(
37 "Experimental settings - setting these won't produce errors if the "
38 "setting is not present.",
39 true, m_experimental_properties->GetValueProperties());
40}
41
43 return m_experimental_properties->GetPropertyAtIndexAs<bool>(
44 ePropertyEnableParallelImageLoad,
45 g_dynamicloaderdarwin_experimental_properties
46 [ePropertyEnableParallelImageLoad]
47 .default_uint_value != 0);
48}
49
51 static DynamicLoaderDarwinProperties g_settings;
52 return g_settings;
53}
static DynamicLoaderDarwinProperties & GetGlobal()
std::unique_ptr< ExperimentalProperties > m_experimental_properties
lldb::OptionValuePropertiesSP m_collection_sp
static llvm::StringRef GetExperimentalSettingsName()
A class that represents a running process on the host machine.