From 2cb4a78f9394359e3bb74060774e2245bcb9f4b7 Mon Sep 17 00:00:00 2001 From: Ben Langmuir Date: Wed, 5 Feb 2014 22:21:15 +0000 Subject: Add a CC1 option -verify-pch This option will: - load the given pch file - verify it is not out of date by stat'ing dependencies, and - return 0 on success and non-zero on error llvm-svn: 200884 --- clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp') diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp index e14fb2340e6..4c2ec441b3f 100644 --- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -65,6 +65,7 @@ static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) { case InitOnly: return new InitOnlyAction(); case ParseSyntaxOnly: return new SyntaxOnlyAction(); case ModuleFileInfo: return new DumpModuleInfoAction(); + case VerifyPCH: return new VerifyPCHAction(); case PluginAction: { for (FrontendPluginRegistry::iterator it = -- cgit v1.2.3