[PATCH] D89749: SourceManager: Don't allocate an SLocEntry until it's loaded
Duncan P. N. Exon Smith via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 26 10:38:39 PDT 2020
dexonsmith updated this revision to Diff 300722.
dexonsmith edited the summary of this revision.
dexonsmith added a comment.
Made the planned changes to SourceManager, wrapping the index in `LoadedSLocEntryIndex` which acts like an `Optional<unsigned>` (but still using 0 for a sentinel to allow zero-initialization).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89749/new/
https://reviews.llvm.org/D89749
Files:
clang/include/clang/Basic/SourceManager.h
clang/lib/Basic/SourceManager.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89749.300722.patch
Type: text/x-patch
Size: 10314 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201026/b78173fc/attachment.bin>
More information about the cfe-commits
mailing list