Skip to content

Commit 42c4781

Browse files
authored
Merge pull request #1090 from swiftwasm/swift/release/5.4
[pull] swiftwasm-release/5.4 from swift/release/5.4
2 parents 008f02e + 0af844b commit 42c4781

File tree

4 files changed

+125
-39
lines changed

4 files changed

+125
-39
lines changed

lldb/include/lldb/Core/ModuleList.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ class ModuleListProperties : public Properties {
5858
bool GetUseSwiftClangImporter() const;
5959
bool GetUseSwiftDWARFImporter() const;
6060
bool SetUseSwiftDWARFImporter(bool new_value);
61+
bool GetUseSwiftTypeRefTypeSystem() const;
62+
bool SetUseSwiftTypeRefTypeSystem(bool new_value);
6163
FileSpec GetClangModulesCachePath() const;
6264
SwiftModuleLoadingMode GetSwiftModuleLoadingMode() const;
6365
bool SetSwiftModuleLoadingMode(SwiftModuleLoadingMode);

lldb/source/Core/CoreProperties.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ let Definition = "modulelist" in {
1616
def UseSwiftDWARFImporter: Property<"use-swift-dwarfimporter", "Boolean">,
1717
DefaultTrue,
1818
Desc<"Reconstruct Clang module dependencies from DWARF when debugging Swift code">;
19+
def UseSwiftTypeRefTypeSystem: Property<"use-swift-typeref-typesystem", "Boolean">,
20+
DefaultTrue,
21+
Desc<"Prefer Swift Remote Mirrors over Remote AST">;
1922
def SwiftModuleLoadingMode: Property<"swift-module-loading-mode", "Enum">,
2023
DefaultEnumValue<"eSwiftModuleLoadingModePreferSerialized">,
2124
EnumValues<"OptionEnumValues(g_swift_module_loading_mode_enums)">,

lldb/source/Core/ModuleList.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,17 @@ bool ModuleListProperties::SetUseSwiftDWARFImporter(bool new_value) {
145145
return m_collection_sp->SetPropertyAtIndexAsBoolean(
146146
nullptr, ePropertyUseSwiftDWARFImporter, new_value);
147147
}
148+
149+
bool ModuleListProperties::GetUseSwiftTypeRefTypeSystem() const {
150+
const uint32_t idx = ePropertyUseSwiftTypeRefTypeSystem;
151+
return m_collection_sp->GetPropertyAtIndexAsBoolean(
152+
NULL, idx, g_modulelist_properties[idx].default_uint_value != 0);
153+
}
154+
155+
bool ModuleListProperties::SetUseSwiftTypeRefTypeSystem(bool new_value) {
156+
return m_collection_sp->SetPropertyAtIndexAsBoolean(
157+
nullptr, ePropertyUseSwiftTypeRefTypeSystem, new_value);
158+
}
148159
// END SWIFT
149160

150161
bool ModuleListProperties::SetClangModulesCachePath(const FileSpec &path) {

0 commit comments

Comments
 (0)