[cfe-commits] [PATCH] SourceManager re-write for PCH simplification

Jonathan Turner jonathan_d_turner at apple.com
Wed Jun 29 11:37:17 PDT 2011


This is a resurrected patch originally by Sebastian Redl that rewrites some key elements of the SourceManager.  At a high level, the patch is part of on-going work to help simplify PCH loading.  Special thanks to Doug Gregor for helping me iron out a couple last minute issues.  

This patch has two main features:

* It removes -chained-pch, and makes chained PCH the only means of PCH reuse
* It splits FileIDs into two groups.  Those > 0 represent local FileIDs.  Those < -1 are external, and are taken from loaded PCH files.  This helps to keep us from having to preallocate entries for the PCH in our SLoc "number space".

It also adds remapping functionality to ReadSourceLocation in ASTReader.h, where the 'module' argument was previously ignored.



Jonathan


-------------- next part --------------
A non-text attachment was scrubbed...
Name: sourcemanager_rewrite.patch
Type: application/octet-stream
Size: 100906 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110629/fa66b86b/attachment.obj>


More information about the cfe-commits mailing list