[PATCH] D67030: ContentCache: Simplify by always owning the MemoryBuffer
Duncan P. N. Exon Smith via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 30 17:38:45 PDT 2019
dexonsmith created this revision.
dexonsmith added reviewers: arphaman, Bigcheese, rsmith.
Herald added a subscriber: ributzka.
This changes ContentCache::Buffer to use `std::unique_ptr<MemoryBuffer>`
instead of the PointerIntPair. It drops the (mostly unused) `DoNotFree`
bit in favour of creating a new, non-owning MemoryBuffer instance.
https://reviews.llvm.org/D67030
Files:
clang/include/clang/Basic/SourceManager.h
clang/lib/Basic/SourceManager.cpp
clang/lib/Frontend/CompilerInstance.cpp
lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67030.218195.patch
Type: text/x-patch
Size: 12582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190831/7055be87/attachment.bin>
More information about the cfe-commits
mailing list