aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaModule.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2023-02-20 15:37:11 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2023-02-20 15:37:55 +0800
commit2dfa957f120244ddc0238b548282f67d89f1a832 (patch)
tree2579f1b3549563feec31f8c081604f586f7bedd5 /clang/lib/Sema/SemaModule.cpp
parent397265d88f2200220f6b98f320826f7d5fc3d038 (diff)
downloadllvm-2dfa957f120244ddc0238b548282f67d89f1a832.zip
llvm-2dfa957f120244ddc0238b548282f67d89f1a832.tar.gz
llvm-2dfa957f120244ddc0238b548282f67d89f1a832.tar.bz2
[NFC] Remove the unused parameter in Sema::PushGlobalModuleFragment
The `IsImplicit` parameter should be removed since it is not used now.
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
-rw-r--r--clang/lib/Sema/SemaModule.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaModule.cpp b/clang/lib/Sema/SemaModule.cpp
index f03d982..59891ec 100644
--- a/clang/lib/Sema/SemaModule.cpp
+++ b/clang/lib/Sema/SemaModule.cpp
@@ -74,10 +74,9 @@ static std::string stringFromPath(ModuleIdPath Path) {
Sema::DeclGroupPtrTy
Sema::ActOnGlobalModuleFragmentDecl(SourceLocation ModuleLoc) {
- // We start in the global module; all those declarations are implicitly
- // module-private (though they do not have module linkage).
+ // We start in the global module;
Module *GlobalModule =
- PushGlobalModuleFragment(ModuleLoc, /*IsImplicit=*/false);
+ PushGlobalModuleFragment(ModuleLoc);
// All declarations created from now on are owned by the global module.
auto *TU = Context.getTranslationUnitDecl();
@@ -956,8 +955,7 @@ Decl *Sema::ActOnFinishExportDecl(Scope *S, Decl *D, SourceLocation RBraceLoc) {
return D;
}
-Module *Sema::PushGlobalModuleFragment(SourceLocation BeginLoc,
- bool IsImplicit) {
+Module *Sema::PushGlobalModuleFragment(SourceLocation BeginLoc) {
// We shouldn't create new global module fragment if there is already
// one.
if (!GlobalModuleFragment) {