Skip to content
Aborted

Changes

Summary

  1. [lldb] Check if C++ interop is enabled on CU instead of whole module (details)
  2. [lldb] Check if interop is enabled only on compile unit (details)
  3. [lldb] Check if Embedded Swift is enabled only on the compile unit (details)
Commit 517274e66e183ebd0dbd4be8d450ffb3792a1778 by anoronha
[lldb] Check if C++ interop is enabled on CU instead of whole module

Checking if C++ interop is enabled can be extremely slow if the project
is big enough. We have changed this to checking only the compile unit
instead, but one usage of the old API slipped by.

rdar://147009063
(cherry picked from commit e1099ae103a98c6ef00dc571398b82d59312c457)
The file was modified lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp (diff)
Commit ef04292c4d123480f11bea46811a679d79b955e0 by anoronha
[lldb] Check if interop is enabled only on compile unit

When deciding whether to format a C++ type as a Swiftified type or not,
checking if Swift/C++ interop is enabled on the entire target can be
very expensive for big projects, and may not swiftify types that should
be.

rdar://117708944
(cherry picked from commit fe06ebc96d94076cdf6bad599556ba3dbbd97f8d)
(cherry picked from commit 234b15b2abd93fe66a4724b212f97fdee608ca76)
The file was modified lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp (diff)
The file was modified lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.h (diff)
The file was modified lldb/source/Plugins/Language/Swift/SwiftLanguage.cpp (diff)
Commit 093f6800b6ea6a680f8d4de8d7714cca82cf3a00 by anoronha
[lldb] Check if Embedded Swift is enabled only on the compile unit

Reading debug info of an entire module to check whether embedded Swift
is enabled or not can be very slow. This patch replaces that check with
only checking the compile unit instead.

rdar://147009063
(cherry picked from commit 03ee42cdd6a97286ea3a32c1cde1af176ada2845)
The file was modified lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp (diff)
The file was modified lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.h (diff)