[PATCH] D126781: [CodeGen] Keep track info of lazy-emitted symbols in ModuleBuilder
Richard Smith - zygoloid via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 3 12:36:39 PDT 2022
rsmith added inline comments.
================
Comment at: clang/lib/CodeGen/CodeGenModule.h:1480-1482
+ llvm::SmallPtrSetImpl<clang::Module *> &getEmittedDeferredDecls() {
+ return EmittedModuleInitializers;
+ }
----------------
This function name doesn't match its implementation.
================
Comment at: clang/lib/CodeGen/ModuleBuilder.cpp:136-165
+
+ std::unique_ptr<CodeGen::CodeGenModule> OldBuilder;
+ OldBuilder.swap(Builder);
+
M.reset(new llvm::Module(ExpandModuleName(ModuleName, CodeGenOpts), C));
Initialize(*Ctx);
+
----------------
Please can you move all of this logic into a method on `CodeGenModule` rather than exposing its implementation details to `ModuleBuilder`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126781/new/
https://reviews.llvm.org/D126781
More information about the cfe-commits
mailing list