[PATCH] D102482: [clang][deps] NFC: Report modules' context hash
Duncan P. N. Exon Smith via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 14 11:27:56 PDT 2021
dexonsmith accepted this revision.
dexonsmith added a comment.
This revision is now accepted and ready to land.
LGTM, although I'd slightly prefer the change to CompilerInstance.h be split out and committed after.
================
Comment at: clang/include/clang/Frontend/CompilerInstance.h:230-232
- std::shared_ptr<CompilerInvocation> getInvocationPtr() {
+ CompilerInvocation &getInvocation() {
assert(Invocation && "Compiler instance has no invocation!");
- return Invocation;
----------------
It'd be nice to remove this API separately in a follow up patch; the change to CompilerInstance.h is not necessary here so it's easy to split, focusing the patch on the relevant changes, and that pattern is easier for reverting (especially in out-of-tree code).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102482/new/
https://reviews.llvm.org/D102482
More information about the cfe-commits
mailing list