Modules: Rename MemoryBufferCache to InMemoryModuleCache
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 9 Mar 2019 17:33:56 +0000 (17:33 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 9 Mar 2019 17:33:56 +0000 (17:33 +0000)
commit8bef5cd49a8bb66b777cc3c51f9fb31bffeaa580
tree670f325f1bfdb3dc3ebcc977f185d212ce6e31de
parent506c1aba4d0d02b97c3097bd422f813f21f5fd10
Modules: Rename MemoryBufferCache to InMemoryModuleCache

Change MemoryBufferCache to InMemoryModuleCache, moving it from Basic to
Serialization.  Another patch will start using it to manage module build
more explicitly, but this is split out because it's mostly mechanical.

Because of the move to Serialization we can no longer abuse the
Preprocessor to forward it to the ASTReader.  Besides the rename and
file move, that means Preprocessor::Preprocessor has one fewer parameter
and ASTReader::ASTReader has one more.

llvm-svn: 355777
33 files changed:
clang/include/clang/Frontend/ASTUnit.h
clang/include/clang/Frontend/CompilerInstance.h
clang/include/clang/Lex/Preprocessor.h
clang/include/clang/Serialization/ASTReader.h
clang/include/clang/Serialization/ASTWriter.h
clang/include/clang/Serialization/InMemoryModuleCache.h [moved from clang/include/clang/Basic/MemoryBufferCache.h with 65% similarity]
clang/include/clang/Serialization/Module.h
clang/include/clang/Serialization/ModuleManager.h
clang/lib/Basic/CMakeLists.txt
clang/lib/Basic/MemoryBufferCache.cpp [deleted file]
clang/lib/Frontend/ASTUnit.cpp
clang/lib/Frontend/ChainedIncludesSource.cpp
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Frontend/FrontendActions.cpp
clang/lib/Frontend/PrecompiledPreamble.cpp
clang/lib/Frontend/Rewrite/FrontendActions.cpp
clang/lib/Lex/Preprocessor.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/lib/Serialization/CMakeLists.txt
clang/lib/Serialization/GeneratePCH.cpp
clang/lib/Serialization/InMemoryModuleCache.cpp [new file with mode: 0644]
clang/lib/Serialization/ModuleManager.cpp
clang/test/Modules/outofdate-rebuild.m
clang/unittests/Basic/CMakeLists.txt
clang/unittests/Basic/SourceManagerTest.cpp
clang/unittests/CMakeLists.txt
clang/unittests/Lex/HeaderSearchTest.cpp
clang/unittests/Lex/LexerTest.cpp
clang/unittests/Lex/PPCallbacksTest.cpp
clang/unittests/Lex/PPConditionalDirectiveRecordTest.cpp
clang/unittests/Serialization/CMakeLists.txt [new file with mode: 0644]
clang/unittests/Serialization/InMemoryModuleCacheTest.cpp [moved from clang/unittests/Basic/MemoryBufferCacheTest.cpp with 90% similarity]