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

LGTM with one inline request below.

I also have a question: what kind of performance benefits do you get for the 
preamble load times?



================
Comment at: lib/Frontend/ASTUnit.cpp:2620
+    if (ItFileID == PreambleSrcLocCache.end()) {
       FID = SrcMgr.translateFile(FE);
+      FileLoc = SrcMgr.getLocForStartOfFile(FID);
----------------
Please move the `FileID FID` declaration from above into here because we only 
use it in this `if`.


https://reviews.llvm.org/D33493



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to