Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lldb/include/lldb/Core/ModuleList.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class ModuleListProperties : public Properties {
bool GetUseSwiftClangImporter() const;
bool GetUseSwiftDWARFImporter() const;
bool SetUseSwiftDWARFImporter(bool new_value);
bool GetUseSwiftExplicitModuleLoader() const;
bool SetUseSwiftExplicitModuleLoader(bool new_value);
bool GetSwiftValidateTypeSystem() const;
bool GetSwiftTypeSystemFallback() const;
bool GetSwiftLoadConformances() const;
Expand Down
4 changes: 4 additions & 0 deletions lldb/source/Core/CoreProperties.td
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ let Definition = "modulelist" in {
def UseSwiftDWARFImporter: Property<"use-swift-dwarfimporter", "Boolean">,
DefaultTrue,
Desc<"Reconstruct Clang module dependencies from DWARF when debugging Swift code">;
def UseSwiftExplicitModuleLoader
: Property<"use-swift-explicit-module-loader", "Boolean">,
DefaultTrue,
Desc<"Prefer explicitly specified modules over ones found in dSYMs">;
def SwiftValidateTypeSystem: Property<"swift-validate-typesystem", "Boolean">,
DefaultFalse,
Desc<"Validate all Swift typesystem queries. Used for testing an asserts-enabled LLDB only.">;
Expand Down
11 changes: 11 additions & 0 deletions lldb/source/Core/ModuleList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,17 @@ bool ModuleListProperties::SetUseSwiftDWARFImporter(bool new_value) {
return SetPropertyAtIndex(idx, new_value);
}

bool ModuleListProperties::GetUseSwiftExplicitModuleLoader() const {
const uint32_t idx = ePropertyUseSwiftExplicitModuleLoader;
return GetPropertyAtIndexAs<bool>(
idx, g_modulelist_properties[idx].default_uint_value != 0);
}

bool ModuleListProperties::SetUseSwiftExplicitModuleLoader(bool new_value) {
const uint32_t idx = ePropertyUseSwiftExplicitModuleLoader;
return SetPropertyAtIndex(idx, new_value);
}

bool ModuleListProperties::GetSwiftValidateTypeSystem() const {
const uint32_t idx = ePropertySwiftValidateTypeSystem;
return GetPropertyAtIndexAs<bool>(
Expand Down
Loading