Recover better from an incompatible .pcm file being provided by -fmodule-file=.
We try to include the headers of the module textually in this case, still enforcing the modules semantic rules. In order to make that work, we need to still track that we're entering and leaving the module. Also, if the module was also marked as unavailable (perhaps because it was missing a file), we shouldn't mark the module unavailable -- we don't need the module to be complete if we're going to enter it textually. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288449 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Lex/ModuleLoader.h 19 additions, 6 deletionsinclude/clang/Lex/ModuleLoader.h
- lib/Frontend/CompilerInstance.cpp 17 additions, 4 deletionslib/Frontend/CompilerInstance.cpp
- lib/Lex/PPDirectives.cpp 5 additions, 5 deletionslib/Lex/PPDirectives.cpp
- test/Modules/config-mismatch.cpp 10 additions, 0 deletionstest/Modules/config-mismatch.cpp
Loading
Please register or sign in to comment