[SourceKit] Disable expensive SIL options (#17306)

Disable the sanitizers and code coverage when building a swift
invocation for the purpose of collecting diagnostics.

This should speed up diagnostic generation and reduce exposure to
compiler bugs.

rdar://40955900
This commit is contained in:
Vedant Kumar
2018-06-18 14:43:27 -07:00
committed by GitHub
parent 88d305cade
commit d910e5a5c2
3 changed files with 19 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ namespace swift {
class Type;
class AbstractStorageDecl;
class SourceFile;
class SILOptions;
class ValueDecl;
enum class AccessorKind;
@@ -532,6 +533,10 @@ public:
~CloseClangModuleFiles();
};
/// Disable expensive SIL options which do not affect indexing or diagnostics.
void disableExpensiveSILOptions(swift::SILOptions &Opts);
} // namespace SourceKit
#endif