Previously when we add module initializer, we forget to handle header units. This results that we couldn't compile a Hello World Example with Header Units. This patch tries to fix this.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/CodeGen/CodeGenModule.cpp | ||
---|---|---|
2524–2527 | See the example about M.cppm. |
Comment Actions
LGTM, one small point about the test,
clang/test/CodeGenCXX/module-initializer-header.cppm | ||
---|---|---|
6–8 | you could use -triple %itanium_abi_triple which would increase the test coverage to other titanium platforms. |
See the example about M.cppm.