In order to drop the final callers to SourceManager::getBuffer, change
FrontendInputFile to use Optional<MemoryBufferRef>. Also updated
the "unowned" version of SourceManager::createFileID to take a
MemoryBufferRef (it now calls MemoryBuffer::getMemBuffer, which
creates a MemoryBuffer that does not own the buffer data).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Adding a couple of changes I forgot to stage (remove now-unused UnownedTag and a minor simplification to createFileID).