mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "embedded: allow dead function elimination for de-serialized functions"
This commit is contained in:
@@ -940,9 +940,6 @@ bool SILFunction::shouldBePreservedForDebugger() const {
|
||||
if (getEffectiveOptimizationMode() != OptimizationMode::NoOptimization)
|
||||
return false;
|
||||
|
||||
if (isAvailableExternally())
|
||||
return false;
|
||||
|
||||
if (hasSemanticsAttr("no.preserve.debugger"))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user