diff options
author | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2024-09-03 10:54:20 +0800 |
---|---|---|
committer | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2024-09-03 10:54:20 +0800 |
commit | 2cbd1bc830861bc08f78fb6cc11747b82f66c4c6 (patch) | |
tree | ce5ee8908f09221b5162043b7804ca1ee1f88cee /clang/lib/CodeGen/CodeGenAction.cpp | |
parent | dc19b59ea2502193c0e7bc16bb7d711c8053edcf (diff) | |
download | llvm-2cbd1bc830861bc08f78fb6cc11747b82f66c4c6.zip llvm-2cbd1bc830861bc08f78fb6cc11747b82f66c4c6.tar.gz llvm-2cbd1bc830861bc08f78fb6cc11747b82f66c4c6.tar.bz2 |
Revert "[C++20] [Modules] Embed all source files for C++20 Modules (#102444)"
This reverts commit 2eeeff842f993a694159183a2834b4d305549cad.
See the post commit discussion in
https://github.com/llvm/llvm-project/commit/2eeeff842f993a694159183a2834b4d305549cad
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenAction.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index 8900faf..e87226e 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -969,10 +969,9 @@ CodeGenerator *CodeGenAction::getCodeGenerator() const { return BEConsumer->getCodeGenerator(); } -bool CodeGenAction::BeginInvocation(CompilerInstance &CI) { +bool CodeGenAction::BeginSourceFileAction(CompilerInstance &CI) { if (CI.getFrontendOpts().GenReducedBMI) - return BeginInvocationForModules(CI); - + CI.getLangOpts().setCompilingModule(LangOptions::CMK_ModuleInterface); return true; } |