aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@apple.com>2020-02-20 17:45:51 -0800
committerVolodymyr Sapsai <vsapsai@apple.com>2020-02-21 13:56:50 -0800
commita6c8698924d2b31a2f096e0f4c06a7015ecccb5e (patch)
tree37f5ce6a44d6ecfcb38c6efb8af7a1e5d024f3ed /clang/lib/Frontend/CompilerInstance.cpp
parent5c33a81b7a46373aa695ab676bec8b70b1abd0e2 (diff)
downloadllvm-a6c8698924d2b31a2f096e0f4c06a7015ecccb5e.zip
llvm-a6c8698924d2b31a2f096e0f4c06a7015ecccb5e.tar.gz
llvm-a6c8698924d2b31a2f096e0f4c06a7015ecccb5e.tar.bz2
clang/Modules: Finish renaming CompilerInstance::ModuleManager, NFC.
Follow-up to 20d51b2f14ac4488f684f8fc57cb0ba718a6b91d, rename the setter to make it consistent with the getter. Also fixed a few comments along the way, didn't try to find all references to a module manager. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D74939
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index fe78791..bf246f4 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -138,7 +138,7 @@ std::unique_ptr<Sema> CompilerInstance::takeSema() {
IntrusiveRefCntPtr<ASTReader> CompilerInstance::getASTReader() const {
return TheASTReader;
}
-void CompilerInstance::setModuleManager(IntrusiveRefCntPtr<ASTReader> Reader) {
+void CompilerInstance::setASTReader(IntrusiveRefCntPtr<ASTReader> Reader) {
assert(ModuleCache.get() == &Reader->getModuleManager().getModuleCache() &&
"Expected ASTReader to use the same PCM cache");
TheASTReader = std::move(Reader);
@@ -379,7 +379,7 @@ static void InitializeFileRemapping(DiagnosticsEngine &Diags,
void CompilerInstance::createPreprocessor(TranslationUnitKind TUKind) {
const PreprocessorOptions &PPOpts = getPreprocessorOpts();
- // The module manager holds a reference to the old preprocessor (if any).
+ // The AST reader holds a reference to the old preprocessor (if any).
TheASTReader.reset();
// Create the Preprocessor.