diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-10-14 17:17:34 -0400 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-10-20 13:35:46 -0400 |
commit | 51d1d585e5838ea0f02f1271f7543c4e43639969 (patch) | |
tree | 3d3fb9ba09116272f10ea8832fbd4cbd3575f7fc /clang/unittests/Basic/FileManagerTest.cpp | |
parent | 59286b36dfb5da3a73401f66d1fa8d65c7817f94 (diff) | |
download | llvm-51d1d585e5838ea0f02f1271f7543c4e43639969.zip llvm-51d1d585e5838ea0f02f1271f7543c4e43639969.tar.gz llvm-51d1d585e5838ea0f02f1271f7543c4e43639969.tar.bz2 |
clang/Frontend: Use MemoryBufferRef in FrontendInputFile (and remove SourceManager::getBuffer)
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).
Differential Revision: https://reviews.llvm.org/D89427
Diffstat (limited to 'clang/unittests/Basic/FileManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions