]> granicus.if.org Git - clang/commit
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)
commitd28cf14aed192f83a38af4a07e6c14af97946947
treeddb49b094b52b90d98ffefb1474cbc11ded3dfc7
parent3a47836eebc2c0f1c5b69d5c9e189244cb9283ae
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.

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