Add flag to verify just-emitted module interfaces

The driver can now schedule jobs which typecheck just-emitted module interfaces to ensure that they can be consumed later. This can be enabled manually by passing `-verify-emitted-module-interface` to the driver.
This commit is contained in:
Brent Royal-Gordon
2020-08-07 17:43:28 -07:00
parent 3c69837102
commit 5f523fee66
8 changed files with 108 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ const char *Action::getClassName(Kind AC) {
case Kind::GenerateDSYMJob: return "generate-dSYM";
case Kind::VerifyDebugInfoJob: return "verify-debug-info";
case Kind::GeneratePCHJob: return "generate-pch";
case Kind::VerifyModuleInterfaceJob: return "verify-module-interface";
}
llvm_unreachable("invalid class");
@@ -65,3 +66,5 @@ void GenerateDSYMJobAction::anchor() {}
void VerifyDebugInfoJobAction::anchor() {}
void GeneratePCHJobAction::anchor() {}
void VerifyModuleInterfaceJobAction::anchor() {}