mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AutoDiff upstream] Add common SIL differentiation utilities.
This commit is contained in:
@@ -2232,6 +2232,11 @@ SourceFile::getCachedVisibleDecls() const {
|
||||
return getCache().AllVisibleValues;
|
||||
}
|
||||
|
||||
void SourceFile::addVisibleDecl(ValueDecl *decl) {
|
||||
Decls->push_back(decl);
|
||||
getCache().AllVisibleValues.push_back(decl);
|
||||
}
|
||||
|
||||
static void performAutoImport(
|
||||
SourceFile &SF,
|
||||
SourceFile::ImplicitModuleImportKind implicitModuleImportKind) {
|
||||
|
||||
Reference in New Issue
Block a user