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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200884 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Driver/Options.td 2 additions, 0 deletionsinclude/clang/Driver/Options.td
- include/clang/Frontend/CompilerInstance.h 2 additions, 0 deletionsinclude/clang/Frontend/CompilerInstance.h
- include/clang/Frontend/FrontendActions.h 11 additions, 0 deletionsinclude/clang/Frontend/FrontendActions.h
- include/clang/Frontend/FrontendOptions.h 1 addition, 0 deletionsinclude/clang/Frontend/FrontendOptions.h
- include/clang/Serialization/ASTReader.h 8 additions, 0 deletionsinclude/clang/Serialization/ASTReader.h
- lib/Driver/Driver.cpp 3 additions, 0 deletionslib/Driver/Driver.cpp
- lib/Driver/Tools.cpp 22 additions, 6 deletionslib/Driver/Tools.cpp
- lib/Driver/Types.cpp 2 additions, 0 deletionslib/Driver/Types.cpp
- lib/Frontend/CompilerInstance.cpp 8 additions, 1 deletionlib/Frontend/CompilerInstance.cpp
- lib/Frontend/CompilerInvocation.cpp 3 additions, 0 deletionslib/Frontend/CompilerInvocation.cpp
- lib/Frontend/FrontendAction.cpp 1 addition, 0 deletionslib/Frontend/FrontendAction.cpp
- lib/Frontend/FrontendActions.cpp 13 additions, 0 deletionslib/Frontend/FrontendActions.cpp
- lib/FrontendTool/ExecuteCompilerInvocation.cpp 1 addition, 0 deletionslib/FrontendTool/ExecuteCompilerInvocation.cpp
- lib/Serialization/ASTReader.cpp 10 additions, 7 deletionslib/Serialization/ASTReader.cpp
- test/Driver/verify_pch.m 12 additions, 0 deletionstest/Driver/verify_pch.m
- test/PCH/verify_pch.m 15 additions, 0 deletionstest/PCH/verify_pch.m
Loading
Please register or sign in to comment