[PATCH] D48426: [clang-cl] Don't emit dllexport inline functions etc. from pch files (PR37801)

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 21 06:46:27 PDT 2018


thakis accepted this revision.
thakis added a comment.
This revision is now accepted and ready to land.

Looks like pretty straightforward plumbing. I can't think of a better place than ASTContext either. I think this is fine with your two XXXs just removed.

Exciting build time wins!



================
Comment at: lib/AST/ASTContext.cpp:9557
+  if (D->isFromASTFile() && !BuildingPCHWithObjectFile) {
+    assert(getExternalSource() && "It's from an AST file; must be a source.");
+    // On Windows, PCH files are built together with an object file. If this
----------------
nit: s/be/have/


https://reviews.llvm.org/D48426





More information about the cfe-commits mailing list