Merge pull request #68843 from augusto2112/keep-funcs-for-deb-tests

Keep certain function that are potentially used in the debugger
This commit is contained in:
Augusto Noronha
2023-10-09 13:58:21 -07:00
committed by GitHub
24 changed files with 253 additions and 184 deletions

View File

@@ -855,6 +855,10 @@ public:
/// current SILModule.
bool isPossiblyUsedExternally() const;
/// Helper method which returns whether this function should be preserved so
/// it can potentially be used in the debugger.
bool shouldBePreservedForDebugger() const;
/// In addition to isPossiblyUsedExternally() it returns also true if this
/// is a (private or internal) vtable method which can be referenced by
/// vtables of derived classes outside the compilation unit.