When deciding if a global module fragement decl is unused, we have
to account for the case that it is emitted as part of the module
initializer. In order to make this more efficient, modify the container
used to cache the module intializer decls.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM with a nits.
clang/include/clang/AST/ASTContext.h | ||
---|---|---|
1083 | Nit: It looks better with containsModuleInitializer. |
Comment Actions
although this was approved, we did not need to use it to implement the dependent changes.
Nit: It looks better with containsModuleInitializer.