mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
-sil-print-all (et al.) should print specialized functions when they are created.
This commit is contained in:
@@ -114,6 +114,7 @@ namespace swift {
|
||||
/// The number should be small anyway, but bugs in optimizations could cause
|
||||
/// an infinite loop in the passmanager.
|
||||
void notifyAddFunction(SILFunction *F, SILFunction *DerivedFrom) {
|
||||
PM->notifyOfNewFunction(F, this);
|
||||
PM->addFunctionToWorklist(F, DerivedFrom);
|
||||
PM->notifyAnalysisOfFunction(F);
|
||||
}
|
||||
@@ -171,6 +172,7 @@ namespace swift {
|
||||
|
||||
/// Inform the pass manager of an added function.
|
||||
void notifyAddFunction(SILFunction *F) {
|
||||
PM->notifyOfNewFunction(F, this);
|
||||
PM->notifyAnalysisOfFunction(F);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user