swift-api-digester: teach the tool to directly compare two module interfaces

We used to use a Json format to capture the ABI/API detail of Swift modules to
walk-around module compatibility issues across different compiler versions. Since
Swift module now is in stable format, we can compare two swiftinterface files
directly without dumping the content into Json format.
This commit is contained in:
Xi Ge
2019-05-31 18:52:12 -07:00
parent c9660106a7
commit d405fcd8ec
11 changed files with 233 additions and 175 deletions

View File

@@ -1972,7 +1972,7 @@ swift::ide::api::getSDKNodeRoot(SDKContext &SDKCtx,
CheckerOptions Opts) {
CompilerInvocation Invocation(InitInvok);
CompilerInstance &CI = SDKCtx.getCompilerInstance();
CompilerInstance &CI = SDKCtx.newCompilerInstance();
// Display diagnostics to stderr.
PrintingDiagnosticConsumer PrintDiags;
CI.addDiagnosticConsumer(&PrintDiags);