[PATCH] D23125: Modules: add command line option to support loading prebuilt modules on demand, without parsing any module map

Manman Ren via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 17 16:56:45 PDT 2016


manmanren added a comment.

Cheers,

Manman


================
Comment at: lib/Frontend/CompilerInstance.cpp:1502
@@ +1501,3 @@
+        Module = PP->getHeaderSearchInfo().lookupModule(ModuleName);
+        if (!Module || !Module->getASTFile() ||
+            std::string(Module->getASTFile()->getName()) != ModuleFileName) {
----------------
Thanks for the explanation, it makes sense.

Updated the patch accordingly.


https://reviews.llvm.org/D23125





More information about the cfe-commits mailing list