aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaModule.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2023-02-20 15:07:07 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2023-02-20 15:07:49 +0800
commit70d78e035801a35c95c55384621724b0ef8ecb35 (patch)
treef763765b835bd4a9f8a235d755540c1a5d2288ca /clang/lib/Sema/SemaModule.cpp
parent9e5d2495acbcc20efa22759c4b7b4a2da8079eef (diff)
downloadllvm-70d78e035801a35c95c55384621724b0ef8ecb35.zip
llvm-70d78e035801a35c95c55384621724b0ef8ecb35.tar.gz
llvm-70d78e035801a35c95c55384621724b0ef8ecb35.tar.bz2
[NFC] Remove unused Sema::DirectModuleImports
Sema::DirectModuleImports is not used now. Remove it for clearness.
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
-rw-r--r--clang/lib/Sema/SemaModule.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaModule.cpp b/clang/lib/Sema/SemaModule.cpp
index f1c4090..f03d982 100644
--- a/clang/lib/Sema/SemaModule.cpp
+++ b/clang/lib/Sema/SemaModule.cpp
@@ -602,11 +602,6 @@ DeclResult Sema::ActOnModuleImport(SourceLocation StartLoc,
Diag(ExportLoc, diag::err_export_not_in_module_interface);
}
- // In some cases we need to know if an entity was present in a directly-
- // imported module (as opposed to a transitive import). This avoids
- // searching both Imports and Exports.
- DirectModuleImports.insert(Mod);
-
return Import;
}