aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-03-13 11:20:38 +0800
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>2024-03-13 11:22:32 +0800
commit5d7796e674224be54c48a8db981f4134845bcc7c (patch)
treed4cd980c1af1bdb12d9c9de633452911661153d5 /clang/lib/Frontend/FrontendActions.cpp
parenta62222f5f0bf30a5437255521df62750060a4bf4 (diff)
downloadllvm-5d7796e674224be54c48a8db981f4134845bcc7c.zip
llvm-5d7796e674224be54c48a8db981f4134845bcc7c.tar.gz
llvm-5d7796e674224be54c48a8db981f4134845bcc7c.tar.bz2
[NFC] [C++20] [Modules] Refactor ReducedBMIGenerator
Changes: - Don't lookup the emitting module from HeaderSearch. We will use the module from the ASTContext directly. - Remove some useless arguments. Let's addback in the future if required.
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r--clang/lib/Frontend/FrontendActions.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp
index 50338bf..81fcd8d 100644
--- a/clang/lib/Frontend/FrontendActions.cpp
+++ b/clang/lib/Frontend/FrontendActions.cpp
@@ -293,11 +293,9 @@ GenerateModuleInterfaceAction::CreateOutputFile(CompilerInstance &CI,
std::unique_ptr<ASTConsumer>
GenerateReducedModuleInterfaceAction::CreateASTConsumer(CompilerInstance &CI,
StringRef InFile) {
- auto Buffer = std::make_shared<PCHBuffer>();
- return std::make_unique<ReducedBMIGenerator>(
- CI.getPreprocessor(), CI.getModuleCache(),
- CI.getFrontendOpts().OutputFile, Buffer,
- /*IncludeTimestamps=*/+CI.getFrontendOpts().IncludeTimestamps);
+ return std::make_unique<ReducedBMIGenerator>(CI.getPreprocessor(),
+ CI.getModuleCache(),
+ CI.getFrontendOpts().OutputFile);
}
bool GenerateHeaderUnitAction::BeginSourceFileAction(CompilerInstance &CI) {