diff options
author | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2023-05-16 11:22:02 +0800 |
---|---|---|
committer | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2023-05-16 11:24:35 +0800 |
commit | 88a720d19479e4cad186f00a9911714c3d77303a (patch) | |
tree | 52da0ae0c5230970cb85ced3e59065406dd291cb /clang/lib/Sema/SemaModule.cpp | |
parent | 369e8762b4d658e6e8f8310200aadf043bd7f01e (diff) | |
download | llvm-88a720d19479e4cad186f00a9911714c3d77303a.zip llvm-88a720d19479e4cad186f00a9911714c3d77303a.tar.gz llvm-88a720d19479e4cad186f00a9911714c3d77303a.tar.bz2 |
[NFC] [C++20] [Modules] Rename ASTContext::getNamedModuleForCodeGen to ASTContext::getCurrentNamedModule
The original name "ASTContext::getNamedModuleForCodeGen" is not properly
reflecting the usage of the interface. This interface can be used to
judge the current module unit in both sema analysis and code generation.
So the original name was not so correct.
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
-rw-r--r-- | clang/lib/Sema/SemaModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaModule.cpp b/clang/lib/Sema/SemaModule.cpp index 53e453b..e1d7c29 100644 --- a/clang/lib/Sema/SemaModule.cpp +++ b/clang/lib/Sema/SemaModule.cpp @@ -389,7 +389,7 @@ Sema::ActOnModuleDecl(SourceLocation StartLoc, SourceLocation ModuleLoc, // statements, so imports are allowed. ImportState = ModuleImportState::ImportAllowed; - getASTContext().setNamedModuleForCodeGen(Mod); + getASTContext().setCurrentNamedModule(Mod); // We already potentially made an implicit import (in the case of a module // implementation unit importing its interface). Make this module visible |